Class EventServiceStub
java.lang.Object
de.hybris.platform.ruleengineservices.util.EventServiceStub
- All Implemented Interfaces:
EventService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSet<org.springframework.context.ApplicationListener>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.
-
Constructor Details
-
EventServiceStub
public EventServiceStub()
-
-
Method Details
-
publishEvent
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
- Specified by:
getEventListenersin interfaceEventService- Returns:
- a set with all registered
ApplicationListeners
-