|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.asterisk.manager.impl.EventBuilderImpl
public class EventBuilderImpl
Default implementation of the EventBuilder interface.
ManagerEvent| Constructor Summary | |
|---|---|
EventBuilderImpl()
|
|
| 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. |
void |
registerEventClass(java.lang.String eventType,
java.lang.Class clazz)
Registers a new event class for the event given by eventType. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EventBuilderImpl()
| Method Detail |
|---|
public void registerEventClass(java.lang.Class clazz)
EventBuildernet.sf.asterisk.manager.event.JoinEvent is registered for
the event "Join".
registerEventClass in interface EventBuilderclazz - the event class to register, must extend
net.sf.asterisk.manager.event.ManagerEvent.
public void registerEventClass(java.lang.String eventType,
java.lang.Class clazz)
eventType - the name of the event to register the class for. For
example "Join".clazz - the event class to register, must extend
net.sf.asterisk.manager.event.Event.
public ManagerEvent buildEvent(java.lang.Object source,
java.util.Map attributes)
EventBuilder
buildEvent in interface EventBuildersource - 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 | |||||||||