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 Details

    • parser

      @Autowired protected StyleParser parser
      A parser for parsing styles.
    • forkJoinPool

      @Autowired protected ExecutorService forkJoinPool
      A fork join pool for running async tasks.
  • Constructor Details

    • AbstractFeatureSourceLayerPlugin

      protected AbstractFeatureSourceLayerPlugin(String typeName, 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 Details

    • getTypeNames

      public final Set<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 interface MapLayerFactoryPlugin<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 map
      styleString - a string that identifies a style.
    • setParser

      public final void setParser(StyleParser parser)
      Sets the style parser for this feature source layer.