Class EventServiceStub
- java.lang.Object
-
- de.hybris.platform.ruleengineservices.util.EventServiceStub
-
- All Implemented Interfaces:
EventService
public class EventServiceStub extends java.lang.Object implements EventService
-
-
Constructor Summary
Constructors Constructor Description EventServiceStub()
-
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 applicationListener)Register the givenApplicationListenerto the event service.booleanunregisterEventListener(org.springframework.context.ApplicationListener applicationListener)Removes the givenApplicationListenerfrom the event service.
-
-
-
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 applicationListener)
Description copied from interface:EventServiceRegister the givenApplicationListenerto the event service.- Specified by:
registerEventListenerin interfaceEventService- Parameters:
applicationListener- the listener to be register- Returns:
- true if registration was sucessfull
-
unregisterEventListener
public boolean unregisterEventListener(org.springframework.context.ApplicationListener applicationListener)
Description copied from interface:EventServiceRemoves the givenApplicationListenerfrom the event service.- Specified by:
unregisterEventListenerin interfaceEventService- Parameters:
applicationListener- 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
-
-