Class BackofficePlatformEventAdapter
- java.lang.Object
-
- com.hybris.backoffice.cockpitng.events.BackofficePlatformEventAdapter
-
- All Implemented Interfaces:
EventSender,org.springframework.beans.factory.InitializingBean
public class BackofficePlatformEventAdapter extends java.lang.Object implements EventSender, org.springframework.beans.factory.InitializingBean
EventSenderimplementation in the cockpit domain. It wraps application event with theCockpitEventand publishes it in theCockpitEventQueue. The implementation has to be registered in theDefaultBackofficeEventSender.
-
-
Constructor Summary
Constructors Constructor Description BackofficePlatformEventAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()protected voidforwardCockpitEvent(AbstractEvent event)Creates newDefaultCockpitEventbased on the given application event.protected com.hybris.cockpitng.core.events.CockpitEventQueuegetCockpitEventPublisher()protected com.hybris.cockpitng.core.util.CockpitPropertiesgetCockpitProperties()voidsendEvent(AbstractEvent event)Sends the givenAbstractEventdepending on the environment.voidsetBackofficeEventSender(EventSender backofficeEventSender)voidsetCockpitEventQueue(com.hybris.cockpitng.core.events.CockpitEventQueue cockpitEventQueue)voidsetCockpitProperties(com.hybris.cockpitng.core.util.CockpitProperties cockpitProperties)
-
-
-
Method Detail
-
sendEvent
public void sendEvent(AbstractEvent event)
Description copied from interface:EventSenderSends the givenAbstractEventdepending on the environment.- Specified by:
sendEventin interfaceEventSender- Parameters:
event- the event to be send.
-
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
forwardCockpitEvent
protected void forwardCockpitEvent(AbstractEvent event)
Creates newDefaultCockpitEventbased on the given application event. The new cockpit event's name is theevent's runtime class name. Publishes the event in theCockpitEventQueue.- 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)
-
-