T - the type of annotationS - the type of stateE - the type of eventpublic class StateMachineHandler<T extends java.lang.annotation.Annotation,S,E>
extends java.lang.Object
implements org.springframework.core.Ordered
WithStateMachine
and OnTransition annotations.| Constructor and Description |
|---|
StateMachineHandler(java.lang.Class<?> beanClass,
java.lang.Object target,
java.lang.reflect.Method method,
T metaAnnotation,
java.lang.annotation.Annotation annotation)
Instantiates a new container handler.
|
StateMachineHandler(java.lang.Class<?> beanClass,
java.lang.Object target,
java.lang.String methodName,
T metaAnnotation,
java.lang.annotation.Annotation annotation)
Instantiates a new container handler.
|
StateMachineHandler(java.lang.Class<?> beanClass,
T metaAnnotation,
java.lang.annotation.Annotation annotation,
MethodInvokingStateMachineRuntimeProcessor<T,S,E> processor)
Instantiates a new container handler.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.annotation.Annotation |
getAnnotation()
Gets the annotation.
|
java.lang.Class<?> |
getBeanClass()
Gets the bean class.
|
T |
getMetaAnnotation()
Gets the meta annotation.
|
int |
getOrder() |
java.lang.Object |
handle(StateMachineRuntime<S,E> stateMachineRuntime)
Handle container using a
StateMachineRuntimeProcessor. |
void |
setOrder(int order)
Sets the order used get value from
getOrder(). |
java.lang.String |
toString() |
public StateMachineHandler(java.lang.Class<?> beanClass,
java.lang.Object target,
java.lang.reflect.Method method,
T metaAnnotation,
java.lang.annotation.Annotation annotation)
beanClass - the bean classtarget - the target beanmetaAnnotation - the meta annotationannotation - the annotationmethod - the methodpublic StateMachineHandler(java.lang.Class<?> beanClass,
java.lang.Object target,
java.lang.String methodName,
T metaAnnotation,
java.lang.annotation.Annotation annotation)
beanClass - the bean classtarget - the target beanmethodName - the method namemetaAnnotation - the meta annotationannotation - the annotationpublic StateMachineHandler(java.lang.Class<?> beanClass,
T metaAnnotation,
java.lang.annotation.Annotation annotation,
MethodInvokingStateMachineRuntimeProcessor<T,S,E> processor)
beanClass - the bean classmetaAnnotation - the meta annotationannotation - the annotationprocessor - the processorpublic int getOrder()
getOrder in interface org.springframework.core.Orderedpublic T getMetaAnnotation()
public java.lang.annotation.Annotation getAnnotation()
public java.lang.Class<?> getBeanClass()
public void setOrder(int order)
getOrder().
Default value is Ordered.LOWEST_PRECEDENCE.order - the new orderpublic java.lang.Object handle(StateMachineRuntime<S,E> stateMachineRuntime)
StateMachineRuntimeProcessor.stateMachineRuntime - the state machine runtimepublic java.lang.String toString()
toString in class java.lang.Object