|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.factory.FactoryFinder
org.geotools.factory.CommonFactoryFinder
public final class CommonFactoryFinder
Defines static methods used to access the application's default implementation for some common factories. Those "common" factories comprise the style and filter factories. Note that some specialized factories finder like referencing and coverage are defined in specialized classes.
Tip: The BasicFactories
classes provides an other way to access the various
factories from a central point.
Field Summary |
---|
Fields inherited from class org.geotools.factory.FactoryFinder |
---|
EMPTY_HINTS |
Method Summary | |
---|---|
static FeatureCollections |
getFeatureCollections(Hints hints)
Returns the first implementation of FeatureCollections matching the specified hints. |
static java.util.Set |
getFeatureCollectionsSet(Hints hints)
Returns a set of all available implementations for the FeatureCollections interface. |
static org.opengis.feature.FeatureFactory |
getFeatureFactory(Hints hints)
Return the first implementation of FeatureFactory matching the specified hints. |
static java.util.Set |
getFeatureLockFactories(Hints hints)
Returns a set of all available implementations for the FeatureLockFactory interface. |
static FeatureLockFactory |
getFeatureLockFactory(Hints hints)
Returns the first implementation of FeatureLockFactory matching the specified hints. |
static org.opengis.feature.type.FeatureTypeFactory |
getFeatureTypeFactory(Hints hints)
Return the first implementation of FeatureTypeFactory matching the specified hints. |
static java.util.Set |
getFileDataStoreFactories(Hints hints)
Returns a set of all available implementations for the FileDataStoreFactorySpi interface. |
static java.util.Set |
getFilterFactories(Hints hints)
Returns a set of all available implementations for the FilterFactory interface. |
static org.opengis.filter.FilterFactory |
getFilterFactory(Hints hints)
Returns the first implementation of FilterFactory matching the specified hints. |
static org.opengis.filter.FilterFactory2 |
getFilterFactory2(Hints hints)
Returns the first implementation of FilterFactory2 matching the specified hints. |
static java.util.Set |
getFunctionExpressions(Hints hints)
Deprecated. Use FunctionExpression is now @deprecated |
static java.util.Set |
getFunctions(Hints hints)
Returns a set of all available implementations for the Function interface. |
static java.util.Set |
getStyleFactories(Hints hints)
Returns a set of all available implementations for the StyleFactory interface. |
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. |
Methods inherited from class org.geotools.factory.FactoryFinder |
---|
mergeSystemHints |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public 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_FACTORY
public static java.util.Set getStyleFactories(Hints hints)
StyleFactory
interface.
hints
- An optional map of hints, or null
if none.
public static java.util.Set getFunctionExpressions(Hints hints)
FunctionExpression
interface.
hints
- An optional map of hints, or null
if none.
public static java.util.Set getFunctions(Hints hints)
Function
interface.
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_FACTORY
public static java.util.Set getFeatureLockFactories(Hints hints)
FeatureLockFactory
interface.
hints
- An optional map of hints, or null
if none.
public static java.util.Set getFileDataStoreFactories(Hints hints)
FileDataStoreFactorySpi
interface.
hints
- An optional map of hints, or null
if none.
public static org.opengis.feature.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 none
FactoryRegistryException
- if no implementation could be providedHints.FEATURE_FACTORY
public static org.opengis.feature.type.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 none
FactoryRegistryException
- if no implementation could be providedHints.FEATURE_TYPE_FACTORY
public 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_COLLECTIONS
public static java.util.Set getFeatureCollectionsSet(Hints hints)
FeatureCollections
interface.
hints
- An optional map of hints, or null
if none.
public static org.opengis.filter.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_FACTORY
public static java.util.Set getFilterFactories(Hints hints)
FilterFactory
interface.
hints
- An optional map of hints, or null
if none.
public static org.opengis.filter.FilterFactory2 getFilterFactory2(Hints hints) throws FactoryRegistryException
FilterFactory2
matching the specified hints.
This is a convenience method invoking getFilterFactory(org.geotools.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_FACTORY
public static void scanForPlugins()
public static void reset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |