@Singleton @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 Servicepublic void dispatch(RepositoryEvent event)
RepositoryEventDispatcherdispatch in interface RepositoryEventDispatcherevent - The event to dispatch, must not be null.Copyright © 2010–2022 The Apache Software Foundation. All rights reserved.