|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EventBuilder
Transforms maps of attributes to instances of ManagerEvent.
ManagerEvent
Method Summary | |
---|---|
ManagerEvent |
buildEvent(java.lang.Object source,
java.util.Map attributes)
Builds the event based on the given map of attributes and the registered event classes. |
void |
registerEventClass(java.lang.Class clazz)
Registers a new event class. |
Method Detail |
---|
void registerEventClass(java.lang.Class clazz)
net.sf.asterisk.manager.event.JoinEvent
is registered for
the event "Join".
clazz
- the event class to register, must extend
net.sf.asterisk.manager.event.ManagerEvent.ManagerEvent buildEvent(java.lang.Object source, java.util.Map attributes)
source
- source attribute for the eventattributes
- map containing event attributes
null
if no
event class was registered for the event type.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |