|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.keridwen.core.messaging.internal.DefaultEvent<ResultType,MessageType>
ResultType - type of the value returned by the Command.MessageType - the type of the message transported by the Eventpublic class DefaultEvent<ResultType,MessageType>
This is the default implementation of the Event interface.
| Constructor Summary | |
|---|---|
DefaultEvent(EventKey anEventKey,
MessageType aMessage)
Builds an Event with the given unique EventKey and a message to transport. |
|
DefaultEvent(EventKey anEventKey,
MessageType aMessage,
Object aSource)
Builds an Event with the given unique EventKey and a message to transport. |
|
DefaultEvent(EventKey anEventKey,
MessageType aMessage,
Object aSource,
BundleController aDestination)
Builds an Event with the given unique EventKey and a message to transport. |
|
| Method Summary | |
|---|---|
BundleController |
getDestination()
Gets the BundleController to which this Event should be sent (if known). |
EventKey |
getKey()
Returns the unique EventKey of this Event. |
MessageType |
getMessage()
Gets the message transmitted with by the Event. |
Object |
getSource()
Gets the sender of the Event. |
Supervisor<ResultType> |
getSupervisor()
Gets the supervisor of the associated Command. |
void |
setMessage(MessageType aMessage)
Sets the message of the Event. |
void |
setSupervisor(Supervisor<ResultType> aSupervisor)
Sets the supervisor of the associated Command. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultEvent(EventKey anEventKey,
MessageType aMessage)
Event with the given unique EventKey and a message to transport.
anEventKey - the unique event key of the eventaMessage - the message to transport
public DefaultEvent(EventKey anEventKey,
MessageType aMessage,
Object aSource)
Event with the given unique EventKey and a message to transport.
anEventKey - the unique event key of the eventaMessage - the message to transportaSource - the emitter of the message
public DefaultEvent(EventKey anEventKey,
MessageType aMessage,
Object aSource,
BundleController aDestination)
Event with the given unique EventKey and a message to transport.
anEventKey - the unique event key of the eventaMessage - the message to transportaSource - the emitter of the messageaDestination - the controlleron which the event should be executed| Method Detail |
|---|
public final EventKey getKey()
EventEventKey of this Event.
getKey in interface Event<ResultType,MessageType>Eventpublic final MessageType getMessage()
EventEvent.
getMessage in interface Event<ResultType,MessageType>Eventpublic final void setMessage(MessageType aMessage)
EventEvent.
setMessage in interface Event<ResultType,MessageType>aMessage - the message to set.public final BundleController getDestination()
EventBundleController to which this Event should be sent (if known).
getDestination in interface Event<ResultType,MessageType>BundleController that should process this Event.public final Object getSource()
EventEvent.
getSource in interface Event<ResultType,MessageType>Event.public final Supervisor<ResultType> getSupervisor()
EventCommand.
getSupervisor in interface Event<ResultType,MessageType>public final void setSupervisor(Supervisor<ResultType> aSupervisor)
EventCommand.
setSupervisor in interface Event<ResultType,MessageType>aSupervisor - the command supervisor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||