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 java.lang.Object implements MapLayerFactoryPlugin<P>
Abstract class for FeatureSource basedMapLayerFactoryPlugin
objects.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.concurrent.ExecutorService
forkJoinPool
A fork join pool for running async tasks.protected StyleParser
parser
A parser for parsing styles.
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractFeatureSourceLayerPlugin(java.lang.String typeName, java.lang.String... typeNames)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StyleSupplier<org.geotools.api.data.FeatureSource>
createStyleFunction(Template template, java.lang.String styleString)
Create a function that will create the style on demand.java.util.Set<java.lang.String>
getTypeNames()
Return a set of all the values the json 'type' property should have for this plugin to apply typenames MUST be lowercase.void
setParser(StyleParser parser)
-
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 Detail
-
parser
@Autowired protected StyleParser parser
A parser for parsing styles.
-
forkJoinPool
@Autowired protected java.util.concurrent.ExecutorService forkJoinPool
A fork join pool for running async tasks.
-
-
Constructor Detail
-
AbstractFeatureSourceLayerPlugin
protected AbstractFeatureSourceLayerPlugin(java.lang.String typeName, java.lang.String... typeNames)
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 Detail
-
getTypeNames
public final java.util.Set<java.lang.String> 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, java.lang.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
public final void setParser(StyleParser parser)
-
-