Class ApplicationContextEventPropagator

java.lang.Object
com.atlassian.confluence.impl.event.ApplicationContextEventPropagator
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.ApplicationEventPublisherAware

public final class ApplicationContextEventPropagator extends Object implements org.springframework.context.ApplicationEventPublisherAware
This class listeners for all events of type ConfluenceEvent, and re-published them via the Spring ApplicationEventPublisher.

Replaces com.atlassian.event.legacy.SpringContextEventPublisher, which listened to com.atlassian.event.Event rather than ConfluenceEvent.

Since:
8.9
See Also:
  • Constructor Details

    • ApplicationContextEventPropagator

      public ApplicationContextEventPropagator()
  • Method Details

    • onEvent

      @EventListener public void onEvent(ConfluenceEvent event)
    • setApplicationEventPublisher

      public void setApplicationEventPublisher(@NonNull org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
      Specified by:
      setApplicationEventPublisher in interface org.springframework.context.ApplicationEventPublisherAware