EventPublisher
public interface EventManager
Modifier and Type | Method and Description |
---|---|
void |
publishEvent(Event event)
Deprecated.
Publish an event that will be consumed by all listeners which have registered to receive it.
|
void |
registerListener(String listenerKey,
EventListener listener)
Deprecated.
Register a listener to receive events.
|
void |
unregisterListener(String listenerKey)
Deprecated.
Un-register a listener so that it will no longer receive events.
|
void publishEvent(Event event)
event
- the event to publishNullPointerException
- if the event is null
void registerListener(String listenerKey, EventListener listener)
listenerKey
- A unique key for this listener. If the listener is a plugin module, use the
module's complete keylistener
- The listener that is being registeredNullPointerException
- if the listenerKey or listener is null
IllegalArgumentException
- if the listener key is empty (i.e. null
or empty String
)void unregisterListener(String listenerKey)
listenerKey
- the key under which the listener was registered.IllegalArgumentException
- if the listener key is empty (i.e. null
or empty String
)Copyright © 2006-2016 Atlassian. All Rights Reserved.