public class

ConfluenceEventPublisherManager

extends Object
implements EventPublisher ApplicationContextAware ApplicationListener
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.
Public Methods
void onApplicationEvent(ApplicationEvent event)
void publish(Object o)
void register(Object o)
void setApplicationContext(ApplicationContext applicationContext)
void unregister(Object o)
void unregisterAll()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.event.api.EventPublisher
From interface org.springframework.context.ApplicationContextAware
From interface org.springframework.context.ApplicationListener

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)

Throws
BeansException

public void unregister (Object o)

public void unregisterAll ()