Class Event
- java.lang.Object
-
- org.apache.mina.statemachine.event.Event
-
public class Event extends Object
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.- Author:
- Apache MINA Project
-
-
Field Summary
Fields Modifier and Type Field Description static String
WILDCARD_EVENT_ID
The wildcard event
-
Constructor Summary
Constructors Constructor Description Event(Object id, StateContext context)
Creates a newEvent
with the specified id and no arguments.Event(Object id, StateContext context, Object[] arguments)
Creates a newEvent
with the specified id and arguments.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object[]
getArguments()
StateContext
getContext()
Object
getId()
String
toString()
-
-
-
Field Detail
-
WILDCARD_EVENT_ID
public static final String WILDCARD_EVENT_ID
The wildcard event- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Event
public Event(Object id, StateContext context)
Creates a newEvent
with the specified id and no arguments.- Parameters:
id
- the event id.context
- theStateContext
the event was triggered for.
-
Event
public Event(Object id, StateContext context, Object[] arguments)
Creates a newEvent
with the specified id and arguments.- Parameters:
id
- the event id.context
- theStateContext
the event was triggered for.arguments
- the event arguments.
-
-
Method Detail
-
getContext
public StateContext getContext()
- Returns:
- the
StateContext
thisEvent
was triggered for.
-
getArguments
public Object[] getArguments()
-
-