public class ConfluenceEventPublisherManager extends Object implements com.atlassian.event.api.EventPublisher, org.springframework.context.ApplicationListener, org.springframework.context.ApplicationContextAware
EventPublisher for use with an injected
EventDispatcher.
EventListener implementations or the new annotation based ones - EventListener.
EventPublisherImpl.| Constructor and Description |
|---|
ConfluenceEventPublisherManager(com.atlassian.event.spi.EventDispatcher eventDispatcher)
Creates a ConfluenceEventPublisherManager with a
ListenerHandlersConfiguration containing
LegacyListenerHandler and AnnotatedMethodsListenerHandler
to support listeners implementing EventListener interface or the annotation EventListener. |
ConfluenceEventPublisherManager(com.atlassian.event.spi.EventDispatcher eventDispatcher,
com.atlassian.event.config.ListenerHandlersConfiguration listenerHandlersConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
void |
onApplicationEvent(org.springframework.context.ApplicationEvent event) |
void |
publish(Object o) |
void |
register(Object o) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
unregister(Object o) |
void |
unregisterAll() |
public ConfluenceEventPublisherManager(com.atlassian.event.spi.EventDispatcher eventDispatcher,
com.atlassian.event.config.ListenerHandlersConfiguration listenerHandlersConfiguration)
public ConfluenceEventPublisherManager(com.atlassian.event.spi.EventDispatcher eventDispatcher)
ListenerHandlersConfiguration containing
LegacyListenerHandler and AnnotatedMethodsListenerHandler
to support listeners implementing EventListener interface or the annotation EventListener.eventDispatcher - Injected event dispatcher.public void publish(Object o)
publish in interface com.atlassian.event.api.EventPublisherpublic void register(Object o)
register in interface com.atlassian.event.api.EventListenerRegistrarpublic void unregister(Object o)
unregister in interface com.atlassian.event.api.EventListenerRegistrarpublic void unregisterAll()
unregisterAll in interface com.atlassian.event.api.EventListenerRegistrarpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic void onApplicationEvent(org.springframework.context.ApplicationEvent event)
onApplicationEvent in interface org.springframework.context.ApplicationListenerCopyright © 2003–2017 Atlassian. All rights reserved.