Class AbstractClassDelegate
java.lang.Object
org.flowable.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
org.flowable.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
org.flowable.engine.impl.bpmn.helper.AbstractClassDelegate
- All Implemented Interfaces:
Serializable
,ActivityBehavior
,TriggerableActivityBehavior
- Direct Known Subclasses:
ClassDelegate
,ClassDelegateCollectionHandler
,ClassDelegateHttpHandler
Helper class for bpmn constructs that allow class delegation.
This class will lazily instantiate the referenced classes when needed at runtime.
- Author:
- Tijs Rademakers
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
protected List<FieldDeclaration>
protected String
Fields inherited from class org.flowable.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
multiInstanceActivityBehavior, v5MultiInstanceActivityBehavior
Fields inherited from class org.flowable.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
bpmnActivityBehavior
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractClassDelegate
(Class<?> clazz, List<FieldDeclaration> fieldDeclarations) AbstractClassDelegate
(String className, List<FieldDeclaration> fieldDeclarations) -
Method Summary
Modifier and TypeMethodDescriptionstatic void
applyFieldDeclaration
(List<FieldDeclaration> fieldDeclarations, Object target) static void
applyFieldDeclaration
(List<FieldDeclaration> fieldDeclarations, Object target, boolean throwExceptionOnMissingField) static void
applyFieldDeclaration
(FieldDeclaration declaration, Object target) static void
applyFieldDeclaration
(FieldDeclaration declaration, Object target, boolean throwExceptionOnMissingField) static Object
defaultInstantiateDelegate
(Class<?> clazz, List<FieldDeclaration> fieldDeclarations) static Object
defaultInstantiateDelegate
(Class<?> clazz, List<FieldDeclaration> fieldDeclarations, ServiceTask serviceTask) static Object
defaultInstantiateDelegate
(String className, List<FieldDeclaration> fieldDeclarations) static Object
defaultInstantiateDelegate
(String className, List<FieldDeclaration> fieldDeclarations, ServiceTask serviceTask) returns the class name thisAbstractClassDelegate
is configured to.protected Object
instantiateDelegate
(String className, List<FieldDeclaration> fieldDeclarations) Methods inherited from class org.flowable.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
executeCompensateBoundaryEvents, findBoundaryEventsForFlowNode, getMultiInstanceActivityBehavior, getProcessDefinition, getV5MultiInstanceActivityBehavior, hasLoopCharacteristics, hasMultiInstanceCharacteristics, leave, setMultiInstanceActivityBehavior, setV5MultiInstanceActivityBehavior
Methods inherited from class org.flowable.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
execute, leaveIgnoreConditions, parseActivityType, trigger
-
Field Details
-
serviceTaskId
-
className
-
fieldDeclarations
-
-
Constructor Details
-
AbstractClassDelegate
-
AbstractClassDelegate
-
-
Method Details
-
instantiateDelegate
-
defaultInstantiateDelegate
public static Object defaultInstantiateDelegate(Class<?> clazz, List<FieldDeclaration> fieldDeclarations, ServiceTask serviceTask) -
defaultInstantiateDelegate
public static Object defaultInstantiateDelegate(Class<?> clazz, List<FieldDeclaration> fieldDeclarations) -
defaultInstantiateDelegate
public static Object defaultInstantiateDelegate(String className, List<FieldDeclaration> fieldDeclarations, ServiceTask serviceTask) -
defaultInstantiateDelegate
public static Object defaultInstantiateDelegate(String className, List<FieldDeclaration> fieldDeclarations) -
applyFieldDeclaration
-
applyFieldDeclaration
public static void applyFieldDeclaration(List<FieldDeclaration> fieldDeclarations, Object target, boolean throwExceptionOnMissingField) -
applyFieldDeclaration
-
applyFieldDeclaration
public static void applyFieldDeclaration(FieldDeclaration declaration, Object target, boolean throwExceptionOnMissingField) -
getClassName
returns the class name thisAbstractClassDelegate
is configured to. Comes in handy if you want to check which delegates you already have e.g. in a list of listeners
-