Class Event
java.lang.Object
org.apache.mina.statemachine.event.Event
Represents an event which typically corresponds to a method call on a proxy.
An event has an id and zero or more arguments typically corresponding to
the method arguments.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Object[]private final StateContextprivate final Objectstatic final StringThe wildcard event -
Constructor Summary
ConstructorsConstructorDescriptionEvent(Object id, StateContext context) Creates a newEventwith the specified id and no arguments.Event(Object id, StateContext context, Object[] arguments) Creates a newEventwith the specified id and arguments. -
Method Summary
-
Field Details
-
WILDCARD_EVENT_ID
-
id
-
context
-
arguments
-
-
Constructor Details
-
Event
Creates a newEventwith the specified id and no arguments.- Parameters:
id- the event id.context- theStateContextthe event was triggered for.
-
Event
Creates a newEventwith the specified id and arguments.- Parameters:
id- the event id.context- theStateContextthe event was triggered for.arguments- the event arguments.
-
-
Method Details
-
getContext
- Returns:
- the
StateContextthisEventwas triggered for.
-
getId
-
getArguments
-
toString
-