Class EventServiceStub

  • All Implemented Interfaces:
    EventService

    public class EventServiceStub
    extends java.lang.Object
    implements EventService
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Set<org.springframework.context.ApplicationListener> getEventListeners()  
      void publishEvent​(AbstractEvent event)
      Publish the given AbstractEvent in the current EventScope to the EventSender.
      boolean registerEventListener​(org.springframework.context.ApplicationListener applicationListener)
      Register the given ApplicationListener to the event service.
      boolean unregisterEventListener​(org.springframework.context.ApplicationListener applicationListener)
      Removes the given ApplicationListener from the event service.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EventServiceStub

        public EventServiceStub()
    • Method Detail

      • registerEventListener

        public boolean registerEventListener​(org.springframework.context.ApplicationListener applicationListener)
        Description copied from interface: EventService
        Register the given ApplicationListener to the event service.
        Specified by:
        registerEventListener in interface EventService
        Parameters:
        applicationListener - the listener to be register
        Returns:
        true if registration was sucessfull
      • unregisterEventListener

        public boolean unregisterEventListener​(org.springframework.context.ApplicationListener applicationListener)
        Description copied from interface: EventService
        Removes the given ApplicationListener from the event service.
        Specified by:
        unregisterEventListener in interface EventService
        Parameters:
        applicationListener - the listener to be unregister
        Returns:
        true if removal was sucessfull
      • getEventListeners

        public java.util.Set<org.springframework.context.ApplicationListener> getEventListeners()
        Specified by:
        getEventListeners in interface EventService
        Returns:
        a set with all registered ApplicationListeners