Class ProcessStartingPointcutAdvisor
- java.lang.Object
-
- org.camunda.bpm.engine.spring.components.aop.ProcessStartingPointcutAdvisor
-
- All Implemented Interfaces:
java.io.Serializable,org.springframework.aop.Advisor,org.springframework.aop.PointcutAdvisor
public class ProcessStartingPointcutAdvisor extends java.lang.Object implements org.springframework.aop.PointcutAdvisor, java.io.SerializableAOP advice for methods annotated with (by default)StartProcess. Advised methods start a process after the method executes. Advised methods can declare a return type ofProcessInstanceand then subsequently return null. The real return ProcessInstance value will be given by the aspect.- Since:
- 5.3
- Author:
- Josh Long
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected org.aopalliance.intercept.MethodInterceptoradvicetheMethodInterceptorthat handles launching the business process.protected org.springframework.aop.Pointcutpointcutmatches any method containing theStartProcessannotation.protected ProcessEngineprocessEnginethe injected reference to theProcessEngine
-
Constructor Summary
Constructors Constructor Description ProcessStartingPointcutAdvisor(ProcessEngine pe)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.aopalliance.intercept.MethodInterceptorbuildAdvise()org.aopalliance.aop.AdvicegetAdvice()org.springframework.aop.PointcutgetPointcut()booleanisPerInstance()
-
-
-
Field Detail
-
advice
protected org.aopalliance.intercept.MethodInterceptor advice
theMethodInterceptorthat handles launching the business process.
-
pointcut
protected org.springframework.aop.Pointcut pointcut
matches any method containing theStartProcessannotation.
-
processEngine
protected ProcessEngine processEngine
the injected reference to theProcessEngine
-
-
Constructor Detail
-
ProcessStartingPointcutAdvisor
public ProcessStartingPointcutAdvisor(ProcessEngine pe)
-
-
Method Detail
-
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
-
-