public interface CoreEventListenerService
EventListener
,
CoreEvent
Modifier and Type | Method and Description |
---|---|
void |
addEventListener(EventListener listener)
Adds a repository event listener.
|
void |
fireOperationStarted(Operation<?> command)
Fires a command starting event.
|
void |
fireOperationTerminated(Operation<?> command)
Fires a command termination event.
|
EventListener |
getEventListenerByName(String name)
Returns an event listener given its name.
|
Collection<EventListener> |
getEventListeners()
Returns the collection of event listeners.
|
void |
notifyEventListeners(CoreEvent coreEvent)
Notifies a core event.
|
void |
removeEventListener(EventListener listener)
Removes a repository event listener.
|
void |
transactionCommited()
Notify post commit listeners about all events raised in the current transaction.
|
void |
transactionRollbacked()
Called by the core session after the current transaction was rollbacked.
|
void |
transactionStarted()
A new transaction started.
|
void addEventListener(EventListener listener)
listener
- the event listener to addvoid removeEventListener(EventListener listener)
listener
- the event listener to removevoid notifyEventListeners(CoreEvent coreEvent)
Event listeners are notified if they are configured to process the given event type. They are notified in the order defined in their settings.
coreEvent
- a coreEvent instancevoid fireOperationStarted(Operation<?> command)
command
- the commandvoid fireOperationTerminated(Operation<?> command)
command
- the command that terminatedCollection<EventListener> getEventListeners()
EventListener getEventListenerByName(String name)
name
- the name of the event listener used a registration timevoid transactionCommited()
void transactionRollbacked()
void transactionStarted()
Copyright © 2011 Nuxeo SA. All Rights Reserved.