Class DefaultElementTransformHandlerRegistry
- java.lang.Object
-
- org.camunda.bpm.dmn.engine.impl.transform.DefaultElementTransformHandlerRegistry
-
- All Implemented Interfaces:
DmnElementTransformHandlerRegistry
public class DefaultElementTransformHandlerRegistry extends Object implements DmnElementTransformHandlerRegistry
-
-
Field Summary
Fields Modifier and Type Field Description protected static Map<Class<? extends DmnModelElementInstance>,DmnElementTransformHandler>
handlers
-
Constructor Summary
Constructors Constructor Description DefaultElementTransformHandlerRegistry()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <Source extends DmnModelElementInstance,Target>
voidaddHandler(Class<Source> sourceClass, DmnElementTransformHandler<Source,Target> handler)
Register aDmnElementTransformHandler
for a source typeprotected static Map<Class<? extends DmnModelElementInstance>,DmnElementTransformHandler>
getDefaultElementTransformHandlers()
<Source extends DmnModelElementInstance,Target>
DmnElementTransformHandler<Source,Target>getHandler(Class<Source> sourceClass)
Get the transformer for a source type
-
-
-
Field Detail
-
handlers
protected static final Map<Class<? extends DmnModelElementInstance>,DmnElementTransformHandler> handlers
-
-
Method Detail
-
getDefaultElementTransformHandlers
protected static Map<Class<? extends DmnModelElementInstance>,DmnElementTransformHandler> getDefaultElementTransformHandlers()
-
addHandler
public <Source extends DmnModelElementInstance,Target> void addHandler(Class<Source> sourceClass, DmnElementTransformHandler<Source,Target> handler)
Description copied from interface:DmnElementTransformHandlerRegistry
Register aDmnElementTransformHandler
for a source type- Specified by:
addHandler
in interfaceDmnElementTransformHandlerRegistry
- Type Parameters:
Source
- the type of the transformation inputTarget
- the type of the transformation output- Parameters:
sourceClass
- the class of the source typehandler
- the handler to register
-
getHandler
public <Source extends DmnModelElementInstance,Target> DmnElementTransformHandler<Source,Target> getHandler(Class<Source> sourceClass)
Description copied from interface:DmnElementTransformHandlerRegistry
Get the transformer for a source type- Specified by:
getHandler
in interfaceDmnElementTransformHandlerRegistry
- Type Parameters:
Source
- the type of the transformation inputTarget
- the type of the transformation output- Parameters:
sourceClass
- the class of the source type- Returns:
- the
DmnElementTransformHandler
or null if none is registered for this source type
-
-