Class BackofficePlatformEventAdapter

  • All Implemented Interfaces:
    EventSender, org.springframework.beans.factory.InitializingBean

    public class BackofficePlatformEventAdapter
    extends java.lang.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 Detail

      • BackofficePlatformEventAdapter

        public BackofficePlatformEventAdapter()
    • Method Detail

      • 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)