Class SpringEventSender

java.lang.Object
de.hybris.platform.servicelayer.event.impl.SpringEventSender
All Implemented Interfaces:
EventSender, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware
Direct Known Subclasses:
PlatformClusterEventSender

public class SpringEventSender extends Object implements EventSender, org.springframework.context.ApplicationContextAware
Spring event sender class. Each event is published to the ApplicationEventPublisher.publishEvent(org.springframework.context.ApplicationEvent)
  • Field Details

    • applicationContext

      protected org.springframework.context.ApplicationContext applicationContext
  • Constructor Details

    • SpringEventSender

      public SpringEventSender()
  • Method Details

    • sendEvent

      public void sendEvent(AbstractEvent event)
      Description copied from interface: EventSender
      Sends the given AbstractEvent depending on the environment.
      Specified by:
      sendEvent in interface EventSender
      Parameters:
      event - the event to be send.
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException