public class BackofficePlatformEventAdapter extends java.lang.Object implements EventSender
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 and Description |
|---|
BackofficePlatformEventAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
protected void |
forwardCockpitEvent(AbstractEvent event)
Creates new
DefaultCockpitEvent based on the given application event. |
protected CockpitEventQueue |
getCockpitEventPublisher() |
protected CockpitProperties |
getCockpitProperties() |
void |
sendEvent(AbstractEvent event)
Sends the given
AbstractEvent depending on the environment. |
void |
setBackofficeEventSender(EventSender backofficeEventSender) |
void |
setCockpitEventQueue(CockpitEventQueue cockpitEventQueue) |
void |
setCockpitProperties(CockpitProperties cockpitProperties) |
public void sendEvent(AbstractEvent event)
EventSenderAbstractEvent depending on the environment.sendEvent in interface EventSenderevent - the event to be send.public void afterPropertiesSet()
protected void forwardCockpitEvent(AbstractEvent event)
DefaultCockpitEvent based on the given application event. The new cockpit event's name is the
event's runtime class name. Publishes the event in the CockpitEventQueue.event - incoming application event.protected CockpitEventQueue getCockpitEventPublisher()
public void setCockpitEventQueue(CockpitEventQueue cockpitEventQueue)
protected CockpitProperties getCockpitProperties()
public void setCockpitProperties(CockpitProperties cockpitProperties)
public void setBackofficeEventSender(EventSender backofficeEventSender)
Copyright © 2018 SAP SE. All Rights Reserved.