@Named public class DefaultRepositoryEventDispatcher extends Object implements RepositoryEventDispatcher, Service
Constructor and Description |
---|
DefaultRepositoryEventDispatcher() |
Modifier and Type | Method and Description |
---|---|
DefaultRepositoryEventDispatcher |
addRepositoryListener(RepositoryListener listener) |
void |
dispatch(RepositoryEvent event)
Dispatches the specified repository event to all registered listeners.
|
void |
initService(ServiceLocator locator) |
DefaultRepositoryEventDispatcher |
setRepositoryListeners(Collection<RepositoryListener> listeners) |
public DefaultRepositoryEventDispatcher()
public DefaultRepositoryEventDispatcher addRepositoryListener(RepositoryListener listener)
public DefaultRepositoryEventDispatcher setRepositoryListeners(Collection<RepositoryListener> listeners)
public void initService(ServiceLocator locator)
initService
in interface Service
public void dispatch(RepositoryEvent event)
RepositoryEventDispatcher
dispatch
in interface RepositoryEventDispatcher
event
- The event to dispatch, must not be null
.Copyright © 2010–2021 The Apache Software Foundation. All rights reserved.