Interface EventService
- All Known Implementing Classes:
DefaultEventService,EventServiceStub
public interface EventService
Interface for handling with the event service.
- Since:
- 4.0
- Spring Bean ID:
- eventService
-
Method Summary
Modifier and TypeMethodDescriptionSet<org.springframework.context.ApplicationListener>voidpublishEvent(AbstractEvent event) booleanregisterEventListener(org.springframework.context.ApplicationListener listener) Register the givenApplicationListenerto the event service.booleanunregisterEventListener(org.springframework.context.ApplicationListener listener) Removes the givenApplicationListenerfrom the event service.
-
Method Details
-
publishEvent
- Parameters:
event- the event
-
registerEventListener
boolean registerEventListener(org.springframework.context.ApplicationListener listener) Register the givenApplicationListenerto the event service.- Parameters:
listener- the listener to be register- Returns:
- true if registration was sucessfull
-
unregisterEventListener
boolean unregisterEventListener(org.springframework.context.ApplicationListener listener) Removes the givenApplicationListenerfrom the event service.- Parameters:
listener- the listener to be unregister- Returns:
- true if removal was sucessfull
-
getEventListeners
Set<org.springframework.context.ApplicationListener> getEventListeners()- Returns:
- a set with all registered
ApplicationListeners
-