Class BackofficePlatformEventAdapter

java.lang.Object
com.hybris.backoffice.cockpitng.events.BackofficePlatformEventAdapter
All Implemented Interfaces:
EventSender, org.springframework.beans.factory.InitializingBean

public class BackofficePlatformEventAdapter extends Object implements EventSender, org.springframework.beans.factory.InitializingBean
EventSender implementation in the cockpit domain. It wraps application event with the CockpitEvent and publishes it in the CockpitEventQueue. The implementation has to be registered in the DefaultBackofficeEventSender.
  • Constructor Details

    • BackofficePlatformEventAdapter

      public BackofficePlatformEventAdapter()
  • 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.
    • afterPropertiesSet

      public void afterPropertiesSet()
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
    • forwardCockpitEvent

      protected void forwardCockpitEvent(AbstractEvent event)
      Creates new DefaultCockpitEvent based on the given application event. The new cockpit event's name is the event's runtime class name. Publishes the event in the CockpitEventQueue.
      Parameters:
      event - incoming application event.
    • getCockpitEventPublisher

      protected com.hybris.cockpitng.core.events.CockpitEventQueue getCockpitEventPublisher()
    • setCockpitEventQueue

      public void setCockpitEventQueue(com.hybris.cockpitng.core.events.CockpitEventQueue cockpitEventQueue)
    • getCockpitProperties

      protected com.hybris.cockpitng.core.util.CockpitProperties getCockpitProperties()
    • setCockpitProperties

      public void setCockpitProperties(com.hybris.cockpitng.core.util.CockpitProperties cockpitProperties)
    • setBackofficeEventSender

      public void setBackofficeEventSender(EventSender backofficeEventSender)