Class DelegatingMultiEventPublisher

java.lang.Object
com.atlassian.crowd.core.event.DelegatingMultiEventPublisher
All Implemented Interfaces:
MultiEventPublisher, com.atlassian.event.api.EventListenerRegistrar, com.atlassian.event.api.EventPublisher
Direct Known Subclasses:
TransactionAwareEventPublisher

public class DelegatingMultiEventPublisher extends Object implements MultiEventPublisher
Basic implementation of MultiEventPublisher that delegates to an underlying EventPublisher
  • Field Details

    • delegate

      protected final com.atlassian.event.api.EventPublisher delegate
  • Constructor Details

    • DelegatingMultiEventPublisher

      public DelegatingMultiEventPublisher(com.atlassian.event.api.EventPublisher delegate)
  • Method Details

    • publishAll

      public void publishAll(Collection<Object> events)
      Description copied from interface: MultiEventPublisher
      Publish events that will be consumed by their respective registered listeners. This should be equivalent with calling EventPublisher.publish(Object) for every event in the collection.
      Specified by:
      publishAll in interface MultiEventPublisher
    • publish

      public void publish(Object event)
      Specified by:
      publish in interface com.atlassian.event.api.EventPublisher
    • register

      public void register(Object listener)
      Specified by:
      register in interface com.atlassian.event.api.EventListenerRegistrar
    • unregister

      public void unregister(Object listener)
      Specified by:
      unregister in interface com.atlassian.event.api.EventListenerRegistrar
    • unregisterAll

      public void unregisterAll()
      Specified by:
      unregisterAll in interface com.atlassian.event.api.EventListenerRegistrar