java.lang.Object |
↳ |
com.atlassian.confluence.event.ConfluenceEventPublisherManager |
Class Overview
Implementation of the atlassian-events com.atlassian.event.api.EventPublisher for use with an injected
com.atlassian.event.spi.EventDispatcher.
By default this will accept listeners based on the old deprecated
com.atlassian.event.EventListener implementations or the new annotation based ones - com.atlassian.event.api.EventListener.
This delegates to com.atlassian.event.internal.EventPublisherImpl.
Summary
Public Constructors |
|
ConfluenceEventPublisherManager(EventDispatcher eventDispatcher, ListenerHandlersConfiguration listenerHandlersConfiguration)
|
|
ConfluenceEventPublisherManager(EventDispatcher eventDispatcher)
Creates a ConfluenceEventPublisherManager with a com.atlassian.event.config.ListenerHandlersConfiguration containing
com.atlassian.event.legacy.LegacyListenerHandler and com.atlassian.event.internal.AnnotatedMethodsListenerHandler
to support listeners implementing com.atlassian.event.EventListener interface or the annotation com.atlassian.event.api.EventListener.
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
From interface
com.atlassian.event.api.EventPublisher
void
|
publish(Object arg0)
|
void
|
register(Object arg0)
|
void
|
unregister(Object arg0)
|
void
|
unregisterAll()
|
|
From interface
org.springframework.context.ApplicationContextAware
void
|
setApplicationContext(ApplicationContext arg0)
|
|
From interface
org.springframework.context.ApplicationListener
void
|
onApplicationEvent(ApplicationEvent arg0)
|
|
Public Constructors
public
ConfluenceEventPublisherManager
(EventDispatcher eventDispatcher, ListenerHandlersConfiguration listenerHandlersConfiguration)
public
ConfluenceEventPublisherManager
(EventDispatcher eventDispatcher)
Creates a ConfluenceEventPublisherManager with a com.atlassian.event.config.ListenerHandlersConfiguration containing
com.atlassian.event.legacy.LegacyListenerHandler and com.atlassian.event.internal.AnnotatedMethodsListenerHandler
to support listeners implementing com.atlassian.event.EventListener interface or the annotation com.atlassian.event.api.EventListener.
Parameters
eventDispatcher
| Injected event dispatcher.
|
Public Methods
public
void
onApplicationEvent
(ApplicationEvent event)
public
void
publish
(Object o)
public
void
register
(Object o)
public
void
setApplicationContext
(ApplicationContext applicationContext)
public
void
unregister
(Object o)
public
void
unregisterAll
()