Package org.geotools.factory
Class BasicFactories
- Object
- 
- BasicFactories
 
- 
 public class BasicFactories extends Object Defines a common abstraction for getting the different factories. This default implementation provides support for only the most basic factories (referencing, etc.). Many methods thrown anFactoryNotFoundExceptionin all cases, for example all methods related to GO-1 canvas objects. Those methods will be implemented later in a subclass.- Since:
- 2.3
- Author:
- Martin Desruisseaux
 
- 
- 
Constructor SummaryConstructors Constructor Description BasicFactories(Map hints)Creates a new instance ofBasicFactorieswith the specified set of hints.
 - 
Method Summary
 
- 
- 
- 
Field Detail- 
hintsprotected final Hints hints The hints to be used for all factory creation.
 
- 
 - 
Constructor Detail- 
BasicFactoriespublic BasicFactories(Map hints) Creates a new instance ofBasicFactorieswith the specified set of hints. Thehintsmap should contains only the minimum set of hints, since this constructor will keep a reference to all objects found in this map.- Parameters:
- hints- The hints to be used for all factory creation, or- nullif none.
 
 
- 
 - 
Method Detail- 
getDefaultpublic static BasicFactories getDefault() Returns a default common factory instance.
 - 
getFilterFactorypublic FilterFactory getFilterFactory() throws FactoryRegistryException Returns the filter factory singleton.NOTE: This method is not yet supported in Geotools. The default implementation thrown an exception in all case. - Throws:
- FactoryNotFoundException- if no factory was found for the requested type.
- FactoryRegistryException- if the factory can't be obtained for an other reason.
 
 - 
getNameFactorypublic NameFactory getNameFactory() throws FactoryRegistryException Returns the name factory singleton.NOTE: This method is not yet supported in Geotools. The default implementation thrown an exception in all case. - Throws:
- FactoryNotFoundException- if no factory was found for the requested type.
- FactoryRegistryException- if the factory can't be obtained for an other reason.
 
 - 
getCitationFactorypublic CitationFactory getCitationFactory() throws FactoryRegistryException Returns the citation factory singleton.NOTE: This method is not yet supported in Geotools. The default implementation thrown an exception in all case. - Throws:
- FactoryNotFoundException- if no factory was found for the requested type.
- FactoryRegistryException- if the factory can't be obtained for an other reason.
 
 - 
getCRSAuthorityFactorypublic CRSAuthorityFactory getCRSAuthorityFactory() throws FactoryRegistryException Returns the CRS authority factory singleton.- Throws:
- FactoryNotFoundException- if no factory was found for the requested type.
- FactoryRegistryException- if the factory can't be obtained for an other reason.
 
 - 
getCRSFactorypublic CRSFactory getCRSFactory() throws FactoryRegistryException Returns the CRS factory singleton.- Throws:
- FactoryNotFoundException- if no factory was found for the requested type.
- FactoryRegistryException- if the factory can't be obtained for an other reason.
 
 - 
getCSAuthorityFactorypublic CSAuthorityFactory getCSAuthorityFactory() throws FactoryRegistryException Returns the CS authority factory singleton.- Throws:
- FactoryNotFoundException- if no factory was found for the requested type.
- FactoryRegistryException- if the factory can't be obtained for an other reason.
 
 - 
getCSFactorypublic CSFactory getCSFactory() throws FactoryRegistryException Returns the CS factory singleton.- Throws:
- FactoryNotFoundException- if no factory was found for the requested type.
- FactoryRegistryException- if the factory can't be obtained for an other reason.
 
 - 
getDatumAuthorityFactorypublic DatumAuthorityFactory getDatumAuthorityFactory() throws FactoryRegistryException Returns the datum authority factory singleton.- Throws:
- FactoryNotFoundException- if no factory was found for the requested type.
- FactoryRegistryException- if the factory can't be obtained for an other reason.
 
 - 
getDatumFactorypublic DatumFactory getDatumFactory() throws FactoryRegistryException Returns the datum factory singleton.- Throws:
- FactoryNotFoundException- if no factory was found for the requested type.
- FactoryRegistryException- if the factory can't be obtained for an other reason.
 
 - 
getCoordinateOperationAuthorityFactorypublic CoordinateOperationAuthorityFactory getCoordinateOperationAuthorityFactory() throws FactoryRegistryException Returns the coordinate operation authority factory singleton.- Throws:
- FactoryNotFoundException- if no factory was found for the requested type.
- FactoryRegistryException- if the factory can't be obtained for an other reason.
 
 - 
getCoordinateOperationFactorypublic CoordinateOperationFactory getCoordinateOperationFactory() throws FactoryRegistryException Returns the coordinate operation factory singleton.- Throws:
- FactoryNotFoundException- if no factory was found for the requested type.
- FactoryRegistryException- if the factory can't be obtained for an other reason.
 
 
- 
 
-