Package org.mapfish.print.map.geotools
Class AbstractFeatureSourceLayerPlugin<P>
java.lang.Object
org.mapfish.print.map.geotools.AbstractFeatureSourceLayerPlugin<P>
- Type Parameters:
P
- the type of parameter
- All Implemented Interfaces:
MapLayerFactoryPlugin<P>
- Direct Known Subclasses:
FeatureLayer.Plugin
,GeoJsonLayer.Plugin
,GmlLayer.Plugin
,GridLayerPlugin
public abstract class AbstractFeatureSourceLayerPlugin<P>
extends Object
implements MapLayerFactoryPlugin<P>
Abstract class for FeatureSource based
MapLayerFactoryPlugin
objects.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ExecutorService
A fork join pool for running async tasks.protected StyleParser
A parser for parsing styles. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractFeatureSourceLayerPlugin
(String typeName, String... typeNames) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected final StyleSupplier<org.geotools.api.data.FeatureSource<?,
?>> createStyleFunction
(Template template, String styleString) Create a function that will create the style on demand.Return a set of all the values the json 'type' property should have for this plugin to apply typenames MUST be lowercase.final void
setParser
(StyleParser parser) Sets the style parser for this feature source layer.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.mapfish.print.map.MapLayerFactoryPlugin
createParameter, parse
-
Field Details
-
parser
A parser for parsing styles. -
forkJoinPool
A fork join pool for running async tasks.
-
-
Constructor Details
-
AbstractFeatureSourceLayerPlugin
Constructor.- Parameters:
typeName
- at least one type name for identifying the plugin is required.typeNames
- additional strings used to identify if this plugin can handle the layer definition.
-
-
Method Details
-
getTypeNames
Description copied from interface:MapLayerFactoryPlugin
Return a set of all the values the json 'type' property should have for this plugin to apply typenames MUST be lowercase.- Specified by:
getTypeNames
in interfaceMapLayerFactoryPlugin<P>
-
createStyleFunction
protected final StyleSupplier<org.geotools.api.data.FeatureSource<?,?>> createStyleFunction(Template template, String styleString) Create a function that will create the style on demand. This is called later in a separate thread so any blocking calls will not block the parsing of the layer attributes.- Parameters:
template
- the template for this mapstyleString
- a string that identifies a style.
-
setParser
Sets the style parser for this feature source layer.
-