Package com.bc.ceres.glayer
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 Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends LayerType>
TgetLayerType(Class<T> layerTypeClass)
Return the instance for the given layerType class.static LayerType
getLayerType(String name)
Return the instance for the given layerType class name.static Set<LayerType>
getLayerTypes()
Returns a set of all available layerTypes.
-
-
-
Method Detail
-
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
-
-