Class AbstractSelfTransition
java.lang.Object
org.apache.mina.statemachine.transition.AbstractSelfTransition
- All Implemented Interfaces:
SelfTransition
- Direct Known Subclasses:
MethodSelfTransition
Abstract
SelfTransition implementation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract booleandoExecute(StateContext stateContext, State state) Executes thisSelfTransition.booleanexecute(StateContext stateContext, State state) Executes thisSelfTransition.
-
Constructor Details
-
AbstractSelfTransition
public AbstractSelfTransition()Creates a new instance
-
-
Method Details
-
doExecute
Executes thisSelfTransition.- Parameters:
stateContext- the context in which the execution should occurstate- the current state- Returns:
trueif theSelfTransitionhas been executed successfully
-
execute
Executes thisSelfTransition.- Specified by:
executein interfaceSelfTransition- Parameters:
stateContext- The context in which we are executing the transitionstate- The current state- Returns:
trueif the execution succeeded,falseotherwise.
-