Class DefaultEventService
- java.lang.Object
-
- de.hybris.platform.servicelayer.internal.service.AbstractService
-
- de.hybris.platform.servicelayer.event.impl.DefaultEventService
-
- All Implemented Interfaces:
EventService,java.io.Serializable,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.InitializingBean
public class DefaultEventService extends AbstractService implements EventService
Default implementation of the abstract service interface.- Since:
- 4.0
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
AbstractService.SerializableDTO
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
tenant
-
-
Constructor Summary
Constructors Constructor Description DefaultEventService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<org.springframework.context.ApplicationListener>getEventListeners()voidpublishEvent(AbstractEvent event)booleanregisterEventListener(org.springframework.context.ApplicationListener listener)Register the givenApplicationListenerto the event service.voidsetAdditionalEventSenders(java.util.List<EventSender> additionalEventSenders)voidsetApplicationEventMulticaster(org.springframework.context.event.ApplicationEventMulticaster appEventMulticaster)voidsetClusterService(ClusterService clusterService)voidsetEventSender(EventSender eventSender)voidsetTenantService(TenantService tenantService)booleanunregisterEventListener(org.springframework.context.ApplicationListener listener)Removes the givenApplicationListenerfrom the event service.-
Methods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
afterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, writeReplace
-
-
-
-
Method Detail
-
publishEvent
public void publishEvent(AbstractEvent event)
Description copied from interface:EventService- Specified by:
publishEventin interfaceEventService- Parameters:
event- the event
-
registerEventListener
public boolean registerEventListener(org.springframework.context.ApplicationListener listener)
Description copied from interface:EventServiceRegister the givenApplicationListenerto the event service.- Specified by:
registerEventListenerin interfaceEventService- Parameters:
listener- the listener to be register- Returns:
- true if registration was sucessfull
-
unregisterEventListener
public boolean unregisterEventListener(org.springframework.context.ApplicationListener listener)
Description copied from interface:EventServiceRemoves the givenApplicationListenerfrom the event service.- Specified by:
unregisterEventListenerin interfaceEventService- Parameters:
listener- the listener to be unregister- Returns:
- true if removal was sucessfull
-
getEventListeners
public java.util.Set<org.springframework.context.ApplicationListener> getEventListeners()
- Specified by:
getEventListenersin interfaceEventService- Returns:
- a set with all registered
ApplicationListeners
-
setTenantService
public void setTenantService(TenantService tenantService)
-
setClusterService
public void setClusterService(ClusterService clusterService)
-
setApplicationEventMulticaster
public void setApplicationEventMulticaster(org.springframework.context.event.ApplicationEventMulticaster appEventMulticaster)
-
setEventSender
public void setEventSender(EventSender eventSender)
-
setAdditionalEventSenders
public void setAdditionalEventSenders(java.util.List<EventSender> additionalEventSenders)
-
-