|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mina.statemachine.transition.AbstractSelfTransition
org.apache.mina.statemachine.transition.MethodSelfTransition
public class MethodSelfTransition
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 StateMachineFactory
create a
StateMachine
for you.
Constructor Summary | |
---|---|
MethodSelfTransition(Method method,
Object target)
|
|
MethodSelfTransition(String methodName,
Object target)
Creates a new instance |
Method Summary | |
---|---|
boolean |
doExecute(StateContext stateContext,
State state)
Executes this SelfTransition . |
Method |
getMethod()
Returns the target Method . |
Methods inherited from class org.apache.mina.statemachine.transition.AbstractSelfTransition |
---|
execute |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MethodSelfTransition(Method method, Object target)
public MethodSelfTransition(String methodName, Object target)
method
- the target method.target
- the target object.Method Detail |
---|
public Method getMethod()
Method
.
public boolean doExecute(StateContext stateContext, State state)
AbstractSelfTransition
SelfTransition
.
doExecute
in class AbstractSelfTransition
true
if the SelfTransition
has been executed
successfully
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |