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 Object
implements EventSender, org.springframework.context.ApplicationContextAware
Spring event sender class. Each event is published to the
ApplicationEventPublisher.publishEvent(org.springframework.context.ApplicationEvent)-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsendEvent(AbstractEvent event) Sends the givenAbstractEventdepending on the environment.voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)
-
Field Details
-
applicationContext
protected org.springframework.context.ApplicationContext applicationContext
-
-
Constructor Details
-
SpringEventSender
public SpringEventSender()
-
-
Method Details
-
sendEvent
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
-