Class AbstractClassDelegate

All Implemented Interfaces:
Serializable, ActivityBehavior, TriggerableActivityBehavior
Direct Known Subclasses:
ClassDelegate, ClassDelegateCollectionHandler, ClassDelegateHttpHandler

public abstract class AbstractClassDelegate extends AbstractBpmnActivityBehavior
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 Details

  • Constructor Details

  • Method Details

    • instantiateDelegate

      protected Object instantiateDelegate(String className, List<FieldDeclaration> fieldDeclarations)
    • defaultInstantiateDelegate

      public static Object defaultInstantiateDelegate(Class<?> clazz, List<FieldDeclaration> fieldDeclarations, org.flowable.bpmn.model.ServiceTask serviceTask)
    • defaultInstantiateDelegate

      public static Object defaultInstantiateDelegate(Class<?> clazz, List<FieldDeclaration> fieldDeclarations)
    • defaultInstantiateDelegate

      public static Object defaultInstantiateDelegate(String className, List<FieldDeclaration> fieldDeclarations, org.flowable.bpmn.model.ServiceTask serviceTask)
    • defaultInstantiateDelegate

      public static Object defaultInstantiateDelegate(String className, List<FieldDeclaration> fieldDeclarations)
    • applyFieldDeclaration

      public static void applyFieldDeclaration(List<FieldDeclaration> fieldDeclarations, Object target)
    • applyFieldDeclaration

      public static void applyFieldDeclaration(List<FieldDeclaration> fieldDeclarations, Object target, boolean throwExceptionOnMissingField)
    • applyFieldDeclaration

      public static void applyFieldDeclaration(FieldDeclaration declaration, Object target)
    • applyFieldDeclaration

      public static void applyFieldDeclaration(FieldDeclaration declaration, Object target, boolean throwExceptionOnMissingField)
    • getClassName

      public String getClassName()
      returns the class name this AbstractClassDelegate is configured to. Comes in handy if you want to check which delegates you already have e.g. in a list of listeners