|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
EVENT - An instance of IEventRESULT - The result objectpublic interface IListener<EVENT extends IEvent,RESULT>
Represents a Listener that is executed by a IEventMulticaster. To register
a listener with a multicaster atleast one of the following annotations must
supplied ListenedEvents, RegisteredEvents. Which annotation
depends on the concrete multicaster is being used.
| Method Summary | |
|---|---|
void |
deregister()
DeRegisters the Listener with the IEventMulticaster and all
associated events the listener can handle. |
IEventMulticaster<EVENT,RESULT> |
getMulticaster()
Result the Multicaster to use when registering the listener. |
void |
handle(EVENT event,
ResultReference<RESULT> result)
Called by the IEventMulticaster when the Event is fired. |
void |
register()
Registers the Listener with the IEventMulticaster and all
associated events the listener can handle. |
void |
setMulticaster(IEventMulticaster<EVENT,RESULT> multicaster)
The Multicaster to use when registering the listener. |
| Method Detail |
|---|
void handle(EVENT event,
ResultReference<RESULT> result)
IEventMulticaster when the Event is fired.
event - Event registeredresult - The result to returnvoid setMulticaster(IEventMulticaster<EVENT,RESULT> multicaster)
multicaster - The MulticasterIEventMulticaster<EVENT,RESULT> getMulticaster()
@PostConstruct void register()
IEventMulticaster and all
associated events the listener can handle.
@PreDestroy void deregister()
IEventMulticaster and all
associated events the listener can handle.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||