Class AbstractSelfTransition
- java.lang.Object
-
- org.apache.mina.statemachine.transition.AbstractSelfTransition
-
- All Implemented Interfaces:
SelfTransition
- Direct Known Subclasses:
MethodSelfTransition
public abstract class AbstractSelfTransition extends java.lang.Object implements SelfTransition
AbstractSelfTransitionimplementation.
-
-
Constructor Summary
Constructors Constructor Description AbstractSelfTransition()Creates a new instance
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract booleandoExecute(StateContext stateContext, State state)Executes thisSelfTransition.booleanexecute(StateContext stateContext, State state)Executes thisSelfTransition.
-
-
-
Method Detail
-
doExecute
protected abstract boolean doExecute(StateContext stateContext, State state)
Executes thisSelfTransition.- Parameters:
stateContext- the context in which the execution should occurstate- the current state- Returns:
trueif theSelfTransitionhas been executed successfully
-
execute
public boolean execute(StateContext stateContext, State state)
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.
-
-