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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Set<org.springframework.context.ApplicationListener>
getEventListeners()
void
publishEvent(AbstractEvent event)
boolean
registerEventListener(org.springframework.context.ApplicationListener listener)
Register the givenApplicationListener
to the event service.boolean
unregisterEventListener(org.springframework.context.ApplicationListener listener)
Removes the givenApplicationListener
from the event service.
-
-
-
Method Detail
-
publishEvent
void publishEvent(AbstractEvent event)
- Parameters:
event
- the event
-
registerEventListener
boolean registerEventListener(org.springframework.context.ApplicationListener listener)
Register the givenApplicationListener
to 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 givenApplicationListener
from 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
ApplicationListener
s
-
-