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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected voidforwardCockpitEvent(AbstractEvent event) Creates newDefaultCockpitEventbased on the given application event.protected com.hybris.cockpitng.core.events.CockpitEventQueueprotected com.hybris.cockpitng.core.util.CockpitPropertiesvoidsendEvent(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)
-
Constructor Details
-
BackofficePlatformEventAdapter
public BackofficePlatformEventAdapter()
-
-
Method Details
-
sendEvent
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
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
-