Package org.dspace.services
Interface EventService
-
- All Known Implementing Classes:
SystemEventService
public interface EventService
Allows the creation of system events and registration of event listeners for notification of system events. The service can be configured to log events or ignore certain events.- Author:
- Aaron Zeckoski (azeckoski @ gmail.com)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
fireEvent(Event event)
Fires an event immediately (does not add it to the queue).void
queueEvent(Event event)
Queues up an event to be fired at the end of a successful request/transaction.void
registerEventListener(EventListener listener)
Register an event listener which will be notified when events occur.
-
-
-
Method Detail
-
fireEvent
void fireEvent(Event event)
Fires an event immediately (does not add it to the queue).- Parameters:
event
- contains the data related to this event
-
queueEvent
void queueEvent(Event event)
Queues up an event to be fired at the end of a successful request/transaction.- Parameters:
event
- contains the data related to this event
-
registerEventListener
void registerEventListener(EventListener listener)
Register an event listener which will be notified when events occur.- Parameters:
listener
- an implementation of the event listener
-
-