Interface EventService
-
- All Known Implementing Classes:
DefaultEventService,EventServiceStub
public interface EventServiceInterface for handling with the event service.- Since:
- 4.0
- Spring Bean ID:
- eventService
-
-
Method Summary
All Methods Instance Methods Abstract 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.booleanunregisterEventListener(org.springframework.context.ApplicationListener listener)Removes the givenApplicationListenerfrom the event service.
-
-
-
Method Detail
-
publishEvent
void publishEvent(AbstractEvent event)
- 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
java.util.Set<org.springframework.context.ApplicationListener> getEventListeners()
- Returns:
- a set with all registered
ApplicationListeners
-
-