Package org.eclipse.aether.internal.impl
Class DefaultRepositoryEventDispatcher
- java.lang.Object
-
- org.eclipse.aether.internal.impl.DefaultRepositoryEventDispatcher
-
- All Implemented Interfaces:
RepositoryEventDispatcher
,Service
@Named public class DefaultRepositoryEventDispatcher extends Object implements RepositoryEventDispatcher, Service
-
-
Constructor Summary
Constructors Constructor Description DefaultRepositoryEventDispatcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Constructor Detail
-
DefaultRepositoryEventDispatcher
public DefaultRepositoryEventDispatcher()
-
-
Method Detail
-
addRepositoryListener
public DefaultRepositoryEventDispatcher addRepositoryListener(RepositoryListener listener)
-
setRepositoryListeners
public DefaultRepositoryEventDispatcher setRepositoryListeners(Collection<RepositoryListener> listeners)
-
initService
public void initService(ServiceLocator locator)
Description copied from interface:Service
Provides the opportunity to initialize this service and to acquire other services for its operation from the locator. A service must not save the reference to the provided service locator.- Specified by:
initService
in interfaceService
- Parameters:
locator
- The service locator, must not benull
.
-
dispatch
public void dispatch(RepositoryEvent event)
Description copied from interface:RepositoryEventDispatcher
Dispatches the specified repository event to all registered listeners.- Specified by:
dispatch
in interfaceRepositoryEventDispatcher
- Parameters:
event
- The event to dispatch, must not benull
.
-
-