Class ProcessStartingPointcutAdvisor
java.lang.Object
org.camunda.bpm.engine.spring.components.aop.ProcessStartingPointcutAdvisor
- All Implemented Interfaces:
Serializable,org.springframework.aop.Advisor,org.springframework.aop.PointcutAdvisor
public class ProcessStartingPointcutAdvisor
extends Object
implements org.springframework.aop.PointcutAdvisor, Serializable
AOP advice for methods annotated with (by default)
StartProcess.
Advised methods start a process after the method executes.
Advised methods can declare a return
type of ProcessInstance and then subsequently
return null. The real return ProcessInstance value will be given by the aspect.- Since:
- 5.3
- Author:
- Josh Long
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.aopalliance.intercept.MethodInterceptortheMethodInterceptorthat handles launching the business process.protected org.springframework.aop.Pointcutmatches any method containing theStartProcessannotation.protected ProcessEnginethe injected reference to theProcessEngineFields inherited from interface org.springframework.aop.Advisor
EMPTY_ADVICE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.aopalliance.intercept.MethodInterceptororg.aopalliance.aop.Adviceorg.springframework.aop.Pointcutboolean
-
Field Details
-
advice
protected org.aopalliance.intercept.MethodInterceptor advicetheMethodInterceptorthat handles launching the business process. -
pointcut
protected org.springframework.aop.Pointcut pointcutmatches any method containing theStartProcessannotation. -
processEngine
the injected reference to theProcessEngine
-
-
Constructor Details
-
ProcessStartingPointcutAdvisor
-
-
Method Details
-
buildAdvise
protected org.aopalliance.intercept.MethodInterceptor buildAdvise() -
getPointcut
public org.springframework.aop.Pointcut getPointcut()- Specified by:
getPointcutin interfaceorg.springframework.aop.PointcutAdvisor
-
getAdvice
public org.aopalliance.aop.Advice getAdvice()- Specified by:
getAdvicein interfaceorg.springframework.aop.Advisor
-
isPerInstance
public boolean isPerInstance()- Specified by:
isPerInstancein interfaceorg.springframework.aop.Advisor
-