public class MethodSelfTransition extends AbstractSelfTransition
SelfTransition which invokes a Method. The Method can
have zero or any number of StateContext and State regarding order
Normally you wouldn't create instances of this class directly but rather use
the SelfTransition annotation to define the methods which should be
used as transitions in your state machine and then let
org.apache.mina.statemachine create a
StateMachine for you.
| Constructor and Description |
|---|
MethodSelfTransition(Method method,
Object target) |
MethodSelfTransition(String methodName,
Object target)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
doExecute(StateContext stateContext,
State state)
Executes this
SelfTransition. |
Method |
getMethod()
Returns the target
Method. |
executepublic boolean doExecute(StateContext stateContext, State state)
AbstractSelfTransitionSelfTransition.doExecute in class AbstractSelfTransitiontrue if the SelfTransition has been executed
successfullyCopyright © 2004–2017 Apache MINA Project. All rights reserved.