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.EventPublisher
public void register(Object o)
register
in interface com.atlassian.event.api.EventListenerRegistrar
public void unregister(Object o)
unregister
in interface com.atlassian.event.api.EventListenerRegistrar
public void unregisterAll()
unregisterAll
in interface com.atlassian.event.api.EventListenerRegistrar
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public void onApplicationEvent(org.springframework.context.ApplicationEvent event)
onApplicationEvent
in interface org.springframework.context.ApplicationListener
Copyright © 2003–2019 Atlassian. All rights reserved.