|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectFactoryFinder
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 FactoryFinder |
---|
EMPTY_HINTS |
Method Summary | |
---|---|
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. |
Methods inherited from class FactoryFinder |
---|
mergeSystemHints |
Methods inherited from class 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 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_FACTORY
public 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_FACTORY
public 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 none
FactoryRegistryException
- if no implementation could be providedHints.FEATURE_FACTORY
public 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 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 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_COLLECTIONS
public 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_FACTORY
public 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_FACTORY
public 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.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 FilterFactory2 getFilterFactory2() throws FactoryRegistryException
FilterFactory2
.
This is a convenience method invoking getFilterFactory(org.geotools.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_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 |