public class DefaultEventService extends AbstractService implements EventService
AbstractService.SerializableDTOtenant| Constructor and Description |
|---|
DefaultEventService() |
| Modifier and Type | Method and Description |
|---|---|
Set<ApplicationListener> |
getEventListeners() |
void |
publishEvent(AbstractEvent event)
|
boolean |
registerEventListener(ApplicationListener listener)
Register the given
ApplicationListener to the event service. |
void |
setApplicationEventMulticaster(ApplicationEventMulticaster appEventMulticaster) |
void |
setClusterService(ClusterService clusterService) |
void |
setEventSender(EventSender eventSender) |
void |
setTenantService(TenantService tenantService) |
boolean |
unregisterEventListener(ApplicationListener listener)
Removes the given
ApplicationListener from the event service. |
afterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, setTenantScope, writeReplacepublic void publishEvent(AbstractEvent event)
EventServicepublishEvent in interface EventServiceevent - the eventpublic boolean registerEventListener(ApplicationListener listener)
EventServiceApplicationListener to the event service.registerEventListener in interface EventServicelistener - the listener to be registerpublic boolean unregisterEventListener(ApplicationListener listener)
EventServiceApplicationListener from the event service.unregisterEventListener in interface EventServicelistener - the listener to be unregisterpublic Set<ApplicationListener> getEventListeners()
getEventListeners in interface EventServiceApplicationListenerspublic void setTenantService(TenantService tenantService)
public void setClusterService(ClusterService clusterService)
public void setApplicationEventMulticaster(ApplicationEventMulticaster appEventMulticaster)
public void setEventSender(EventSender eventSender)
Copyright © 2017 SAP SE. All Rights Reserved.