Source Code Cross Referenced for FactoryGroup.java in  » GIS » GeoTools-2.4.1 » org » geotools » referencing » factory » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » GIS » GeoTools 2.4.1 » org.geotools.referencing.factory 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


01:        /*
02:         *    GeoTools - OpenSource mapping toolkit
03:         *    http://geotools.org
04:         *    (C) 2004-2006, GeoTools Project Managment Committee (PMC)
05:         *    (C) 2004, Institut de Recherche pour le Développement
06:         *   
07:         *    This library is free software; you can redistribute it and/or
08:         *    modify it under the terms of the GNU Lesser General Public
09:         *    License as published by the Free Software Foundation;
10:         *    version 2.1 of the License.
11:         *
12:         *    This library is distributed in the hope that it will be useful,
13:         *    but WITHOUT ANY WARRANTY; without even the implied warranty of
14:         *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15:         *    Lesser General Public License for more details.
16:         */
17:        package org.geotools.referencing.factory;
18:
19:        import org.geotools.factory.Hints;
20:        import org.opengis.referencing.crs.CRSFactory;
21:        import org.opengis.referencing.cs.CSFactory;
22:        import org.opengis.referencing.datum.DatumFactory;
23:        import org.opengis.referencing.operation.MathTransformFactory;
24:
25:        /**
26:         * A set of utilities methods working on factories. Many of those methods requires more than
27:         * one factory. Consequently, they can't be a method in a single factory. Furthermore, since
28:         * they are helper methods and somewhat implementation-dependent, they are not part of GeoAPI.
29:         *
30:         * @since 2.1
31:         * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/library/referencing/src/main/java/org/geotools/referencing/factory/FactoryGroup.java $
32:         * @version $Id: FactoryGroup.java 25948 2007-06-20 14:36:14Z desruisseaux $
33:         * @author Martin Desruisseaux
34:         * @deprecated Renamed to ReferencingFactoryContainer in order to reflect use 
35:         */
36:        public final class FactoryGroup extends ReferencingFactoryContainer {
37:            /**
38:             * Constructs an instance using the specified factories. If any factory is null,
39:             * a default instance will be created by {@link ReferencingFactoryFinder} when first needed.
40:             *
41:             * @param datumFactory The {@linkplain Datum datum} factory.
42:             * @param    csFactory The {@linkplain CoordinateSystem coordinate system} factory.
43:             * @param   crsFactory The {@linkplain CoordinateReferenceSystem coordinate reference system}
44:             *                     factory.
45:             * @param    mtFactory The {@linkplain MathTransform math transform} factory.
46:             *
47:             * @deprecated Use {@link #createInstance} instead. The fate of this constructor is
48:             *             incertain. It may be removed in Geotools 2.4, or refactored as a new
49:             *             {@code createInstance} convenience method.
50:             */
51:            public FactoryGroup(final DatumFactory datumFactory,
52:                    final CSFactory csFactory, final CRSFactory crsFactory,
53:                    final MathTransformFactory mtFactory) {
54:                super (datumFactory, csFactory, crsFactory, mtFactory);
55:            }
56:
57:            /**
58:             * Creates an instance from the specified hints. This constructor recognizes the
59:             * {@link Hints#CRS_FACTORY CRS}, {@link Hints#CS_FACTORY CS}, {@link Hints#DATUM_FACTORY DATUM}
60:             * and {@link Hints#MATH_TRANSFORM_FACTORY MATH_TRANSFORM} {@code FACTORY} hints.
61:             * <p>
62:             * This constructor is public mainly for {@link org.geotools.factory.FactoryCreator} usage.
63:             * Consider invoking <code>{@linkplain #createInstance createInstance}(userHints)</code> instead.
64:             *
65:             * @param userHints The hints, or {@code null} if none.
66:             *
67:             * @since 2.2
68:             */
69:            public FactoryGroup(final Hints userHints) {
70:                super (userHints);
71:            }
72:
73:            /**
74:             * Creates an instance from the specified hints. This method recognizes the
75:             * {@link Hints#CRS_FACTORY CRS}, {@link Hints#CS_FACTORY CS}, {@link Hints#DATUM_FACTORY DATUM}
76:             * and {@link Hints#MATH_TRANSFORM_FACTORY MATH_TRANSFORM} {@code FACTORY} hints.
77:             *
78:             * @param  hints The hints, or {@code null} if none.
79:             * @return A factory group created from the specified set of hints.
80:             *
81:             * @since 2.2
82:             */
83:            public static FactoryGroup createInstance(final Hints hints) {
84:                /* just so we can play the deprecation game */
85:                ReferencingFactoryContainer tmp = ReferencingFactoryContainer
86:                        .instance(hints);
87:                return new FactoryGroup(tmp.getDatumFactory(), tmp
88:                        .getCSFactory(), tmp.getCRSFactory(), tmp
89:                        .getMathTransformFactory());
90:            }
91:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.