Interface EventService

All Known Implementing Classes:
DefaultEventService, EventServiceStub

public interface EventService
Interface for handling with the event service.
Since:
4.0
Spring Bean ID:
eventService
  • Method Details

    • publishEvent

      void publishEvent(AbstractEvent event)
      Publish the given AbstractEvent in the current EventScope to the EventSender.
      Parameters:
      event - the event
    • registerEventListener

      boolean registerEventListener(org.springframework.context.ApplicationListener listener)
      Register the given ApplicationListener to the event service.
      Parameters:
      listener - the listener to be register
      Returns:
      true if registration was sucessfull
    • unregisterEventListener

      boolean unregisterEventListener(org.springframework.context.ApplicationListener listener)
      Removes the given ApplicationListener from the event service.
      Parameters:
      listener - the listener to be unregister
      Returns:
      true if removal was sucessfull
    • getEventListeners

      Set<org.springframework.context.ApplicationListener> getEventListeners()
      Returns:
      a set with all registered ApplicationListeners