public class DefaultElementTransformHandlerRegistry extends Object implements DmnElementTransformHandlerRegistry
| Modifier and Type | Field and Description |
|---|---|
protected static Map<Class<? extends DmnModelElementInstance>,DmnElementTransformHandler> |
handlers |
| Constructor and Description |
|---|
DefaultElementTransformHandlerRegistry() |
| Modifier and Type | Method and Description |
|---|---|
<Source extends DmnModelElementInstance,Target> |
addHandler(Class<Source> sourceClass,
DmnElementTransformHandler<Source,Target> handler)
Register a
DmnElementTransformHandler for a source type |
protected static Map<Class<? extends DmnModelElementInstance>,DmnElementTransformHandler> |
getDefaultElementTransformHandlers() |
<Source extends DmnModelElementInstance,Target> |
getHandler(Class<Source> sourceClass)
Get the transformer for a source type
|
protected static final Map<Class<? extends DmnModelElementInstance>,DmnElementTransformHandler> handlers
public DefaultElementTransformHandlerRegistry()
protected static Map<Class<? extends DmnModelElementInstance>,DmnElementTransformHandler> getDefaultElementTransformHandlers()
public <Source extends DmnModelElementInstance,Target> void addHandler(Class<Source> sourceClass, DmnElementTransformHandler<Source,Target> handler)
DmnElementTransformHandlerRegistryDmnElementTransformHandler for a source typeaddHandler in interface DmnElementTransformHandlerRegistrySource - the type of the transformation inputTarget - the type of the transformation outputsourceClass - the class of the source typehandler - the handler to registerpublic <Source extends DmnModelElementInstance,Target> DmnElementTransformHandler<Source,Target> getHandler(Class<Source> sourceClass)
DmnElementTransformHandlerRegistrygetHandler in interface DmnElementTransformHandlerRegistrySource - the type of the transformation inputTarget - the type of the transformation outputsourceClass - the class of the source typeDmnElementTransformHandler or null if none is registered for this source typeCopyright © 2015–2020 camunda services GmbH. All rights reserved.