public class SpringEventSender extends Object implements EventSender
ApplicationContext#publishEvent(org.springframework.context.ApplicationEvent)| Modifier and Type | Field and Description |
|---|---|
protected ApplicationContext |
applicationContext |
| Constructor and Description |
|---|
SpringEventSender() |
| Modifier and Type | Method and Description |
|---|---|
void |
sendEvent(AbstractEvent event)
Sends the given
AbstractEvent depending on the environment. |
void |
setApplicationContext(ApplicationContext applicationContext) |
public void sendEvent(AbstractEvent event)
EventSenderAbstractEvent depending on the environment.sendEvent in interface EventSenderevent - the event to be send.public void setApplicationContext(ApplicationContext applicationContext)
throws BeansException
BeansExceptionCopyright © 2017 SAP SE. All Rights Reserved.