Package org.geotools.factory
Class BasicFactories
Object
BasicFactories
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 an
FactoryNotFoundException
in 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
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBasicFactories
(Map hints) Creates a new instance ofBasicFactories
with the specified set of hints. -
Method Summary
Modifier and TypeMethodDescriptionReturns the citation factory singleton.Returns the coordinate operation authority factory singleton.Returns the coordinate operation factory singleton.Returns the CRS authority factory singleton.Returns the CRS factory singleton.Returns the CS authority factory singleton.Returns the CS factory singleton.Returns the datum authority factory singleton.Returns the datum factory singleton.static BasicFactories
Returns a default common factory instance.Returns the filter factory singleton.Returns the name factory singleton.
-
Field Details
-
hints
The hints to be used for all factory creation.
-
-
Constructor Details
-
BasicFactories
Creates a new instance ofBasicFactories
with the specified set of hints. Thehints
map 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, ornull
if none.
-
-
Method Details
-
getDefault
Returns a default common factory instance. -
getFilterFactory
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.
-
getNameFactory
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.
-
getCitationFactory
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.
-
getCRSAuthorityFactory
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.
-
getCRSFactory
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.
-
getCSAuthorityFactory
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.
-
getCSFactory
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.
-
getDatumAuthorityFactory
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.
-
getDatumFactory
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.
-
getCoordinateOperationAuthorityFactory
public CoordinateOperationAuthorityFactory getCoordinateOperationAuthorityFactory() throws FactoryRegistryExceptionReturns 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.
-
getCoordinateOperationFactory
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.
-