Class LayerTypeRegistry

java.lang.Object
com.bc.ceres.glayer.LayerTypeRegistry

public class LayerTypeRegistry extends Object
A registry for layer type instances.

In order to register new layer types, use the standard META-INF/services JAR service provider interface (SPI). The service provider name is identical to this class' fully qualified name: com.bc.ceres.glayer.LayerType.

Since:
Ceres 0.10
  • Method Details

    • getLayerType

      public static LayerType getLayerType(String name)
      Return the instance for the given layerType class name.
      Parameters:
      name - The name of the layer type.
      Returns:
      the instance
    • getLayerType

      public static <T extends LayerType> T getLayerType(Class<T> layerTypeClass)
      Return the instance for the given layerType class.
      Parameters:
      layerTypeClass - The class of the layer type.
      Returns:
      the instance
    • getLayerTypes

      public static Set<LayerType> getLayerTypes()
      Returns a set of all available layerTypes.
      Returns:
      the set