@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)
Provides the opportunity to initialize this service and to acquire other services for its operation from the
locator.
|
DefaultRepositoryEventDispatcher |
setRepositoryListeners(Collection<RepositoryListener> listeners) |
public DefaultRepositoryEventDispatcher()
public DefaultRepositoryEventDispatcher addRepositoryListener(RepositoryListener listener)
public DefaultRepositoryEventDispatcher setRepositoryListeners(Collection<RepositoryListener> listeners)
public void initService(ServiceLocator locator)
Service
initService
in interface Service
locator
- The service locator, must not be null
.public void dispatch(RepositoryEvent event)
RepositoryEventDispatcher
dispatch
in interface RepositoryEventDispatcher
event
- The event to dispatch, must not be null
.Copyright © 2010–2019 The Apache Software Foundation. All rights reserved.