|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.mina.statemachine.event.Event
public class 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 | |
|---|---|
static String |
WILDCARD_EVENT_ID
|
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String WILDCARD_EVENT_ID
| Constructor Detail |
|---|
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.| Method Detail |
|---|
public StateContext getContext()
StateContext this Event was triggered for.
StateContext.public Object getId()
Event.
public Object[] getArguments()
Event.
Event has
no arguments.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||