Package com.bc.ceres.glayer
Class LayerTypeRegistry
java.lang.Object
com.bc.ceres.glayer.LayerTypeRegistry
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
Modifier and TypeMethodDescriptionstatic <T extends LayerType>
TgetLayerType(Class<T> layerTypeClass) Return the instance for the given layerType class.static LayerTypegetLayerType(String name) Return the instance for the given layerType class name.Returns a set of all available layerTypes.
-
Method Details
-
getLayerType
Return the instance for the given layerType class name.- Parameters:
name- The name of the layer type.- Returns:
- the instance
-
getLayerType
Return the instance for the given layerType class.- Parameters:
layerTypeClass- The class of the layer type.- Returns:
- the instance
-
getLayerTypes
Returns a set of all available layerTypes.- Returns:
- the set
-