public final class CommonFactoryFinder extends FactoryFinder
Tip: The BasicFactories classes provides an other way to access the various
factories from a central point.
EMPTY_HINTS| Modifier and Type | Method and Description |
|---|---|
static FeatureCollections |
getFeatureCollections()
Returns the first implementation of
FeatureCollections. |
static FeatureCollections |
getFeatureCollections(Hints hints)
Returns the first implementation of
FeatureCollections matching the specified hints. |
static Set<FeatureCollections> |
getFeatureCollectionsSet(Hints hints)
Returns a set of all available implementations for the
FeatureCollections interface. |
static FeatureFactory |
getFeatureFactory(Hints hints)
Return the first implementation of
FeatureFactory matching the specified hints. |
static Set<FeatureLockFactory> |
getFeatureLockFactories(Hints hints)
Deprecated.
FeatureLockFactory is no longer needed
|
static FeatureLockFactory |
getFeatureLockFactory(Hints hints)
Deprecated.
FeautreLockFactory is no longer needed; please create a FeatureLock directly
|
static FeatureTypeFactory |
getFeatureTypeFactory(Hints hints)
Return the first implementation of
FeatureTypeFactory matching the specified hints. |
static Set<FileDataStoreFactorySpi> |
getFileDataStoreFactories(Hints hints)
Returns a set of all available implementations for the
FileDataStoreFactorySpi
interface. |
static Set<FilterFactory> |
getFilterFactories(Hints hints)
Returns a set of all available implementations for the
FilterFactory interface. |
static FilterFactory |
getFilterFactory()
Returns the first implementation of
FilterFactory. |
static FilterFactory |
getFilterFactory(Hints hints)
Returns the first implementation of
FilterFactory matching the specified hints. |
static FilterFactory2 |
getFilterFactory2()
Returns the first implementation of
FilterFactory2. |
static FilterFactory2 |
getFilterFactory2(Hints hints)
Returns the first implementation of
FilterFactory2 matching the specified hints. |
static Set<FunctionFactory> |
getFunctionFactories(Hints hints)
Returns a set of all available implementations of
FunctionFactory. |
static Set<Function> |
getFunctions(Hints hints)
Returns a set of all available implementations for the
Function interface. |
static Set<StyleFactory> |
getStyleFactories(Hints hints)
Returns a set of all available implementations for the
StyleFactory interface. |
static StyleFactory |
getStyleFactory()
Returns the first implementation of
StyleFactory. |
static StyleFactory |
getStyleFactory(Hints hints)
Returns the first implementation of
StyleFactory matching the specified hints. |
static void |
reset()
Resets the factory finder and prepares for a new full scan of the SPI subsystems
|
static void |
scanForPlugins()
Scans for factory plug-ins on the application class path.
|
mergeSystemHintspublic static StyleFactory getStyleFactory(Hints hints) throws FactoryRegistryException
StyleFactory matching the specified hints. If no
implementation matches, a new one is created if possible or an exception is thrown otherwise.hints - An optional map of hints, or null if none.FactoryRegistryException - if no implementation was found or can be created for the
StyleFactory interface.Hints.STYLE_FACTORYpublic static StyleFactory getStyleFactory() throws FactoryRegistryException
StyleFactory. If no implementation matches, a new
one is created if possible or an exception is thrown otherwise.FactoryRegistryException - if no implementation was found or can be created for the
StyleFactory interface.Hints.STYLE_FACTORYpublic static Set<StyleFactory> getStyleFactories(Hints hints)
StyleFactory interface.hints - An optional map of hints, or null if none.public static Set<Function> getFunctions(Hints hints)
Function interface.hints - An optional map of hints, or null if none.public static Set<FunctionFactory> getFunctionFactories(Hints hints)
FunctionFactory.hints - An optional map of hints, or null if none.public static FeatureLockFactory getFeatureLockFactory(Hints hints)
FeatureLockFactory matching the specified hints.
If no implementation matches, a new one is created if possible or an exception is thrown
otherwise.hints - An optional map of hints, or null if none.FactoryRegistryException - if no implementation was found or can be created for the
FeatureLockFactory interface.Hints.FEATURE_LOCK_FACTORYpublic static Set<FeatureLockFactory> getFeatureLockFactories(Hints hints)
FeatureLockFactory interface.hints - An optional map of hints, or null if none.public static Set<FileDataStoreFactorySpi> getFileDataStoreFactories(Hints hints)
FileDataStoreFactorySpi
interface.hints - An optional map of hints, or null if none.public static FeatureFactory getFeatureFactory(Hints hints)
FeatureFactory matching the specified hints.
If no implementation matches, a new one is created if possible or an exception is thrown.
hints - An optional map of hints; or null if noneFactoryRegistryException - if no implementation could be providedHints.FEATURE_FACTORYpublic static FeatureTypeFactory getFeatureTypeFactory(Hints hints)
FeatureTypeFactory matching the specified hints.
If no implementation matches, a new one is created if possible or an exception is thrown.
hints - An optional map of hints; or null if noneFactoryRegistryException - if no implementation could be providedHints.FEATURE_TYPE_FACTORYpublic static FeatureCollections getFeatureCollections(Hints hints)
FeatureCollections matching the specified hints.
If no implementation matches, a new one is created if possible or an exception is thrown
otherwise.hints - An optional map of hints, or null if none.FactoryRegistryException - if no implementation was found or can be created for the
FeatureCollections interface.Hints.FEATURE_COLLECTIONSpublic static FeatureCollections getFeatureCollections()
FeatureCollections. If no implementation matches,
a new one is created if possible or an exception is thrown otherwise.FactoryRegistryException - if no implementation was found or can be created for the
FeatureCollections interface.Hints.FEATURE_COLLECTIONSpublic static Set<FeatureCollections> getFeatureCollectionsSet(Hints hints)
FeatureCollections interface.hints - An optional map of hints, or null if none.public static FilterFactory getFilterFactory(Hints hints) throws FactoryRegistryException
FilterFactory matching the specified hints. If no
implementation matches, a new one is created if possible or an exception is thrown otherwise.hints - An optional map of hints, or null if none.FactoryRegistryException - if no implementation was found or can be created for the
FilterFactory interface.Hints.FILTER_FACTORYpublic static FilterFactory getFilterFactory() throws FactoryRegistryException
FilterFactory. If no implementation matches, a
new one is created if possible or an exception is thrown otherwise.FactoryRegistryException - if no implementation was found or can be created for the
FilterFactory interface.Hints.FILTER_FACTORYpublic static Set<FilterFactory> getFilterFactories(Hints hints)
FilterFactory interface.hints - An optional map of hints, or null if none.public static FilterFactory2 getFilterFactory2(Hints hints) throws FactoryRegistryException
FilterFactory2 matching the specified hints. This
is a convenience method invoking getFilterFactory(org.geotools.util.factory.Hints) with a hint value set for
requerying a FactoryFilter2 implementation.hints - An optional map of hints, or null if none.FactoryRegistryException - if no implementation was found or can be created for the
FilterFactory2 interface.Hints.FILTER_FACTORYpublic static FilterFactory2 getFilterFactory2() throws FactoryRegistryException
FilterFactory2. This is a convenience method
invoking getFilterFactory(org.geotools.util.factory.Hints) with a hint value set for requerying a FactoryFilter2 implementation.FactoryRegistryException - if no implementation was found or can be created for the
FilterFactory2 interface.Hints.FILTER_FACTORYpublic static void scanForPlugins()
public static void reset()
Copyright © 1996–2019 Geotools. All rights reserved.