public class Event extends Object
Modifier and Type | Field and Description |
---|---|
static String |
WILDCARD_EVENT_ID |
Constructor and Description |
---|
Event(Object id,
StateContext context)
Creates a new
Event with the specified id and no arguments. |
Event(Object id,
StateContext context,
Object[] arguments)
Creates a new
Event with the specified id and arguments. |
Modifier and Type | Method and Description |
---|---|
Object[] |
getArguments()
Returns the arguments of this
Event . |
StateContext |
getContext()
Returns the
StateContext this Event was triggered for. |
Object |
getId()
Returns the id of this
Event . |
String |
toString() |
public static final String WILDCARD_EVENT_ID
public Event(Object id, StateContext context)
Event
with the specified id and no arguments.id
- the event id.context
- the StateContext
the event was triggered for.public Event(Object id, StateContext context, Object[] arguments)
Event
with the specified id and arguments.id
- the event id.context
- the StateContext
the event was triggered for.arguments
- the event arguments.public StateContext getContext()
StateContext
this Event
was triggered for.StateContext
.public Object[] getArguments()
Event
.Event
has
no arguments.Copyright © 2004-2012 Apache MINA Project. All Rights Reserved.