Class AbstractFeatureSourceLayerPlugin<P>

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

        public final void setParser​(StyleParser parser)