Class StateMachineHandlerCallHelper<S,E>
java.lang.Object
org.springframework.statemachine.processor.StateMachineHandlerCallHelper<S,E>
- Type Parameters:
S
- the type of stateE
- the type of event
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanFactoryAware
,org.springframework.beans.factory.InitializingBean
public class StateMachineHandlerCallHelper<S,E>
extends Object
implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.BeanFactoryAware
Helper class which is used from a StateMachineObjectSupport to ease handling
of StateMachineHandlers and provides needed caching so that a runtime calls
are fast. Also provides dedicated methods for each annotated methods so that
parameters are handled accordingly.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
callOnEventNotAccepted
(String stateMachineId, StateContext<S, E> stateContext) void
callOnExtendedStateChanged
(String stateMachineId, Object key, Object value, StateContext<S, E> stateContext) void
callOnStateChanged
(String stateMachineId, StateContext<S, E> stateContext) void
callOnStateEntry
(String stateMachineId, StateContext<S, E> stateContext) void
callOnStateExit
(String stateMachineId, StateContext<S, E> stateContext) void
callOnStateMachineError
(String stateMachineId, StateContext<S, E> stateContext) void
callOnStateMachineStart
(String stateMachineId, StateContext<S, E> stateContext) void
callOnStateMachineStop
(String stateMachineId, StateContext<S, E> stateContext) void
callOnTransition
(String stateMachineId, StateContext<S, E> stateContext) void
callOnTransitionEnd
(String stateMachineId, StateContext<S, E> stateContext) void
callOnTransitionStart
(String stateMachineId, StateContext<S, E> stateContext) void
setBeanFactory
(org.springframework.beans.factory.BeanFactory beanFactory)
-
Constructor Details
-
StateMachineHandlerCallHelper
public StateMachineHandlerCallHelper()
-
-
Method Details
-
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException - Specified by:
setBeanFactory
in interfaceorg.springframework.beans.factory.BeanFactoryAware
- Throws:
org.springframework.beans.BeansException
-
callOnStateChanged
-
callOnStateEntry
-
callOnStateExit
-
callOnEventNotAccepted
-
callOnTransitionStart
-
callOnTransition
-
callOnTransitionEnd
-
callOnStateMachineStart
-
callOnStateMachineStop
-
callOnStateMachineError
-
callOnExtendedStateChanged
-