org.activiti.engine.impl.bpmn.helper
类 ClassDelegate
java.lang.Object
org.activiti.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
org.activiti.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
org.activiti.engine.impl.bpmn.helper.ClassDelegate
- 所有已实现的接口:
- Serializable, ExecutionListener, TaskListener, ActivityBehavior, SignallableActivityBehavior
public class ClassDelegate
- extends AbstractBpmnActivityBehavior
- implements TaskListener, ExecutionListener
Helper class for bpmn constructs that allow class delegation.
This class will lazily instantiate the referenced classes when needed at runtime.
- 作者:
- Joram Barrez, Falko Menge
- 另请参见:
- 序列化表格
从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
className
protected String className
fieldDeclarations
protected List<FieldDeclaration> fieldDeclarations
executionListenerInstance
protected ExecutionListener executionListenerInstance
taskListenerInstance
protected TaskListener taskListenerInstance
activityBehaviorInstance
protected ActivityBehavior activityBehaviorInstance
ClassDelegate
public ClassDelegate(String className,
List<FieldDeclaration> fieldDeclarations)
ClassDelegate
public ClassDelegate(Class<?> clazz,
List<FieldDeclaration> fieldDeclarations)
notify
public void notify(DelegateExecution execution)
throws Exception
- 指定者:
- 接口
ExecutionListener
中的 notify
- 抛出:
Exception
getExecutionListenerInstance
protected ExecutionListener getExecutionListenerInstance()
notify
public void notify(DelegateTask delegateTask)
- 指定者:
- 接口
TaskListener
中的 notify
getTaskListenerInstance
protected TaskListener getTaskListenerInstance()
execute
public void execute(ActivityExecution execution)
throws Exception
- 从类
FlowNodeActivityBehavior
复制的描述
- Default behaviour: just leave the activity with no extra functionality.
- 指定者:
- 接口
ActivityBehavior
中的 execute
- 覆盖:
- 类
FlowNodeActivityBehavior
中的 execute
- 抛出:
Exception
signal
public void signal(ActivityExecution execution,
String signalName,
Object signalData)
throws Exception
- 指定者:
- 接口
SignallableActivityBehavior
中的 signal
- 覆盖:
- 类
AbstractBpmnActivityBehavior
中的 signal
- 抛出:
Exception
getActivityBehaviorInstance
protected ActivityBehavior getActivityBehaviorInstance(ActivityExecution execution)
determineBehaviour
protected ActivityBehavior determineBehaviour(ActivityBehavior delegateInstance,
ActivityExecution execution)
instantiateDelegate
public static Object instantiateDelegate(Class<?> clazz,
List<FieldDeclaration> fieldDeclarations)
instantiateDelegate
public static Object instantiateDelegate(String className,
List<FieldDeclaration> fieldDeclarations)
applyFieldDeclaration
public static void applyFieldDeclaration(List<FieldDeclaration> fieldDeclarations,
Object target)
applyFieldDeclaration
public static void applyFieldDeclaration(FieldDeclaration declaration,
Object target)
fieldTypeCompatible
public static boolean fieldTypeCompatible(FieldDeclaration declaration,
Field field)
getClassName
public String getClassName()
- returns the class name this
ClassDelegate
is configured to. Comes in handy if you want to
check which delegates you already have e.g. in a list of listeners
Copyright © 2013 Alfresco. All rights reserved.