| java.lang.Object org.apache.mina.statemachine.StateMachineFactory
Method Summary | |
public StateMachine | create(Object handler) Creates a new
StateMachine from the specified handler object and
using a start state with id start .
Parameters: handler - the object containing the annotations describing the state machine. | public StateMachine | create(String start, Object handler) Creates a new
StateMachine from the specified handler object and
using the
State with the specified id as start state.
Parameters: start - the id of the start State to use. Parameters: handler - the object containing the annotations describing the state machine. | public StateMachine | create(Object handler, Object... handlers) Creates a new
StateMachine from the specified handler objects and
using a start state with id start .
Parameters: handler - the first object containing the annotations describing the state machine. Parameters: handlers - zero or more additional objects containing the annotations describing the state machine. | public StateMachine | create(String start, Object handler, Object... handlers) Creates a new
StateMachine from the specified handler objects and
using the
State with the specified id as start state.
Parameters: start - the id of the start State to use. Parameters: handler - the first object containing the annotations describing the state machine. Parameters: handlers - zero or more additional objects containing the annotations describing the state machine. | static State[] | createStates(List<Field> fields) | static List<Field> | getFields(Class> clazz) | public static StateMachineFactory | getInstance(Class<? extends Annotation> transitionAnnotation) Returns a new
StateMachineFactory instance which creates
StateMachine s by reading the specified
Transition equivalent annotation.
Parameters: transitionAnnotation - the Transition equivalent annotation. |
create | public StateMachine create(Object handler)(Code) | | Creates a new
StateMachine from the specified handler object and
using a start state with id start .
Parameters: handler - the object containing the annotations describing the state machine. the StateMachine object. |
create | public StateMachine create(String start, Object handler)(Code) | | Creates a new
StateMachine from the specified handler object and
using the
State with the specified id as start state.
Parameters: start - the id of the start State to use. Parameters: handler - the object containing the annotations describing the state machine. the StateMachine object. |
create | public StateMachine create(Object handler, Object... handlers)(Code) | | Creates a new
StateMachine from the specified handler objects and
using a start state with id start .
Parameters: handler - the first object containing the annotations describing the state machine. Parameters: handlers - zero or more additional objects containing the annotations describing the state machine. the StateMachine object. |
create | public StateMachine create(String start, Object handler, Object... handlers)(Code) | | Creates a new
StateMachine from the specified handler objects and
using the
State with the specified id as start state.
Parameters: start - the id of the start State to use. Parameters: handler - the first object containing the annotations describing the state machine. Parameters: handlers - zero or more additional objects containing the annotations describing the state machine. the StateMachine object. |
|
|