| |
|
| java.lang.Object org.geotools.factory.Factories
Factories | final public class Factories (Code) | | Utility methods that apply to all
.
since: 2.4 PENDING PROPOSAL version: $Id: Factories.java 25406 2007-05-03 18:08:10Z desruisseaux $ author: Martin DesruisseauxGeoToolsFactoryRegistry.globalConfiguration |
Constructor Summary | |
| Factories() Creates an initially empty set of factories. |
Factories | Factories()(Code) | | Creates an initially empty set of factories.
|
addFactoryIteratorProvider | public static void addFactoryIteratorProvider(FactoryIteratorProvider provider)(Code) | | Adds an alternative way to search for factory implementations.
FactoryRegistry has
a default mechanism bundled in it, which uses the content of all
META-INF/services directories found on the classpath. This
addFactoryIteratorProvider method allows
to specify additional discovery algorithms. It may be useful in the context of some
frameworks that use the constructor injection pattern, like the
Spring framework.
GeoTools |
getIteratorProviders | static FactoryIteratorProvider[] getIteratorProviders()(Code) | | Returns all iterator providers. This method do not returns any live collection
since the array will be used outside the synchronized block.
|
removeFactoryIteratorProvider | public static void removeFactoryIteratorProvider(FactoryIteratorProvider provider)(Code) | | Removes a provider that was previously
.
Note that factories already obtained from the specified provider will not be
by this method.
GeoTools |
synchronizeIteratorProviders | final FactoryIteratorProvider[] synchronizeIteratorProviders()(Code) | | Synchronizes the content of the
Factories.iteratorProviders map with the
one. New providers are returned for later
. Note that this method is typically invoked in a different thread than
Factories public static method calls.
The new iterators providers sincethe last time this method was invoked, or null if none. |
|
|
|