|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.event.DefaultEventManager
public class DefaultEventManager
Manages the firing and receiving of events.
Any event passed to publishEvent(com.atlassian.event.Event) will be passed through Spring's event
model, after which it will be returned to the EventManager for processing via
onApplicationEvent(org.springframework.context.ApplicationEvent).
Plugin-based event listeners can register to receive events via
registerListener(String, com.atlassian.event.EventListener)
| Constructor Summary | |
|---|---|
DefaultEventManager()
|
|
| Method Summary | |
|---|---|
void |
onApplicationEvent(org.springframework.context.ApplicationEvent event)
|
void |
publishEvent(Event event)
Publish an event that will be consumed by any listener which has registered to receive it. |
void |
registerListener(String listenerKey,
EventListener listener)
Register a listener to receive events. |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
|
void |
unregisterListener(String listenerKey)
Unregister a listener so that it will no longer receive events. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultEventManager()
| Method Detail |
|---|
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
setApplicationContext in interface org.springframework.context.ApplicationContextAwarepublic void publishEvent(Event event)
EventManager
publishEvent in interface EventManagerevent - the event to publishpublic void onApplicationEvent(org.springframework.context.ApplicationEvent event)
onApplicationEvent in interface org.springframework.context.ApplicationListener
public void registerListener(String listenerKey,
EventListener listener)
EventManager
registerListener in interface EventManagerlistenerKey - A unique key for this listener. If the listener is a plugin module, use the
modules complete keylistener - The listener that is being registeredpublic void unregisterListener(String listenerKey)
EventManager
unregisterListener in interface EventManagerlistenerKey - the key under which the listener was registered.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||