| |
|
| org.geotools.referencing.factory.ReferencingFactory org.geotools.referencing.factory.AbstractAuthorityFactory org.geotools.referencing.factory.AuthorityFactoryAdapter org.geotools.referencing.factory.ManyAuthoritiesFactory org.geotools.referencing.factory.AllAuthoritiesFactory
AllAuthoritiesFactory | public class AllAuthoritiesFactory extends ManyAuthoritiesFactory (Code) | | An authority factory that delegates the object creation to an other factory determined
from the authority name in the code. This is similar to
ManyAuthoritiesFactory except that the set of factories is determined by calls to
ReferencingFactoryFinder.
(authority,
) .
This class is not registered in
ReferencingFactoryFinder . If this "authority" factory
is wanted, then users need to refer explicitly to the
AllAuthoritiesFactory.DEFAULT constant or to create
their own instance.
since: 2.2 version: $Id: AllAuthoritiesFactory.java 29058 2008-02-03 17:47:07Z desruisseaux $ author: Martin Desruisseaux |
Constructor Summary | |
public | AllAuthoritiesFactory(Hints hints) Creates a new factory using the specified hints. | public | AllAuthoritiesFactory(Hints hints, Collection factories) Creates a new factory using the specified hints and a set of user factories.
If
factories is not null, then any call to a
createFoo(code) method will
first scan the supplied factories in their iteration order. | public | AllAuthoritiesFactory(Hints hints, Collection factories, char separator) Creates a new factory using the specified hints, user factories and name
separator. |
AllAuthoritiesFactory | public AllAuthoritiesFactory(Hints hints)(Code) | | Creates a new factory using the specified hints.
Parameters: hints - An optional set of hints, or null if none. |
AllAuthoritiesFactory | public AllAuthoritiesFactory(Hints hints, Collection factories)(Code) | | Creates a new factory using the specified hints and a set of user factories.
If
factories is not null, then any call to a
createFoo(code) method will
first scan the supplied factories in their iteration order. The first factory implementing
the appropriate interface and having the expected
will be used. Only if no suitable factory is found, then this class delegates
to
ReferencingFactoryFinder .
If the
factories collection contains more than one factory for the same authority
and interface, then all additional factories will be
, to be tried in iteration order only if the first acceptable factory failed to
create the requested object.
Parameters: hints - An optional set of hints, or null if none. Parameters: factories - A set of user-specified factories to try before to delegateto ReferencingFactoryFinder, or null if none. |
AllAuthoritiesFactory | public AllAuthoritiesFactory(Hints hints, Collection factories, char separator)(Code) | | Creates a new factory using the specified hints, user factories and name
separator. The optional
factories collection is handled as in the
.
Parameters: hints - An optional set of hints, or null if none. Parameters: factories - A set of user-specified factories to try before to delegateto ReferencingFactoryFinder, or null if none. Parameters: separator - The separator between the authority name and the code. |
getAuthorityNames | public Set getAuthorityNames()(Code) | | Returns the set of authority names.
since: 2.4 |
getFactories | synchronized Collection getFactories()(Code) | | Returns the factories to be used by
ManyAuthoritiesFactory . If the registered
factories changed since the last time this method has been invoked, then this method
recreate the set.
|
getIdentifiedObjectFinder | public IdentifiedObjectFinder getIdentifiedObjectFinder(Class type) throws FactoryException(Code) | | Returns a finder which can be used for looking up unidentified objects.
The default implementation delegates the lookups to the underlying factories.
since: 2.4 |
Fields inherited from org.geotools.referencing.factory.AuthorityFactoryAdapter | final protected CRSAuthorityFactory crsFactory(Code)(Java Doc) final protected CSAuthorityFactory csFactory(Code)(Java Doc) final protected DatumAuthorityFactory datumFactory(Code)(Java Doc) final protected CoordinateOperationAuthorityFactory operationFactory(Code)(Java Doc)
|
|
|
|