public final class DynamicSymbolFactoryFinder extends Object
ExternalGraphicFactory
and MarkFactory
implementations.
In addition to implementing this interface dynamic symbol handlers should have a services file:
META-INF/services/org.geotools.renderer.style.MarkFactory
if the are MarkFactory
instances
META-INF/services/org.geotools.renderer.style.ExternalGraphicFactory
if the
are ExternalGraphicFactory
instances
The file should contain a single line which gives the full name of the implementing class.
Example:
org.geotools.data.jdbc.DBCPDataSourceFactory
Modifier and Type | Field and Description |
---|---|
protected static Logger |
LOGGER
The logger for the filter module.
|
static Hints.Key |
MARK_FACTORY_FILTER
Rendering hint key to store a
Predicate <MarkFactory > instance to set the
allowed MarkFactory instances to be evaluated. |
static Hints.Key |
MARK_FACTORY_ORDER
Rendering hint key to store a
Comparator <MarkFactory > instance to set the
MarkFactory execution order. |
Modifier and Type | Method and Description |
---|---|
static Iterator<ExternalGraphicFactory> |
getExternalGraphicFactories()
Finds all implementations of
ExternalGraphicFactory which have registered using the
services mechanism. |
static Iterator<ExternalGraphicFactory> |
getExternalGraphicFactories(Hints hints)
Finds all implementations of
ExternalGraphicFactory which have registered using the
services mechanism. |
static Iterator<MarkFactory> |
getMarkFactories()
Finds all implementations of
MarkFactory which have registered using the services
mechanism. |
static Iterator<MarkFactory> |
getMarkFactories(Hints hints)
Finds all implementations of
MarkFactory which have registered using the services
mechanism. |
static void |
scanForPlugins()
Scans for factory plug-ins on the application class path.
|
protected static final Logger LOGGER
public static final Hints.Key MARK_FACTORY_ORDER
Comparator
<MarkFactory
> instance to set the
MarkFactory
execution order.public static final Hints.Key MARK_FACTORY_FILTER
Predicate
<MarkFactory
> instance to set the
allowed MarkFactory
instances to be evaluated.public static Iterator<MarkFactory> getMarkFactories()
MarkFactory
which have registered using the services
mechanism.public static Iterator<MarkFactory> getMarkFactories(Hints hints)
MarkFactory
which have registered using the services
mechanism. Returns a filtered and ordered iterator based on the provided Hints input
parameter.hints
- An optional map of hints for factory configuration, or null
if none.
Allowed Hints are: DynamicSymbolFactoryFinder.MARK_FACTORY_ORDER
, DynamicSymbolFactoryFinder.MARK_FACTORY_FILTER
public static Iterator<ExternalGraphicFactory> getExternalGraphicFactories()
ExternalGraphicFactory
which have registered using the
services mechanism.public static Iterator<ExternalGraphicFactory> getExternalGraphicFactories(Hints hints)
ExternalGraphicFactory
which have registered using the
services mechanism.hints
- An optional map of hints for factory configfuration, or null
if none.public static void scanForPlugins()
Copyright © 1996–2023 Geotools. All rights reserved.