Class DefaultEventService

java.lang.Object
de.hybris.platform.servicelayer.internal.service.AbstractService
de.hybris.platform.servicelayer.event.impl.DefaultEventService
All Implemented Interfaces:
EventService, Serializable, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean

public class DefaultEventService extends AbstractService implements EventService
Default implementation of the abstract service interface.
Since:
4.0
See Also:
  • Constructor Details

    • DefaultEventService

      public DefaultEventService()
  • Method Details

    • publishEvent

      public void publishEvent(AbstractEvent event)
      Description copied from interface: EventService
      Publish the given AbstractEvent in the current EventScope to the EventSender.
      Specified by:
      publishEvent in interface EventService
      Parameters:
      event - the event
    • registerEventListener

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

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

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

      public void setTenantService(TenantService tenantService)
    • setClusterService

      public void setClusterService(ClusterService clusterService)
    • setApplicationEventMulticaster

      public void setApplicationEventMulticaster(org.springframework.context.event.ApplicationEventMulticaster appEventMulticaster)
    • setEventSender

      public void setEventSender(EventSender eventSender)
    • setAdditionalEventSenders

      public void setAdditionalEventSenders(List<EventSender> additionalEventSenders)