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 java.lang.Object implements EventSender, org.springframework.context.ApplicationContextAware
Spring event sender class. Each event is published to theApplicationEventPublisher.publishEvent(org.springframework.context.ApplicationEvent)
-
-
Field Summary
Fields Modifier and Type Field Description protected org.springframework.context.ApplicationContextapplicationContext
-
Constructor Summary
Constructors Constructor Description SpringEventSender()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsendEvent(AbstractEvent event)Sends the givenAbstractEventdepending on the environment.voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)
-
-
-
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.
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException- Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
-