Package org.eclipse.aether.internal.impl
Class DefaultRepositoryEventDispatcher
java.lang.Object
org.eclipse.aether.internal.impl.DefaultRepositoryEventDispatcher
- All Implemented Interfaces:
RepositoryEventDispatcher
,Service
@Singleton
@Named
public class DefaultRepositoryEventDispatcher
extends Object
implements RepositoryEventDispatcher, Service
-
Constructor Summary
ConstructorDescriptionDeprecated.DefaultRepositoryEventDispatcher
(Set<RepositoryListener> listeners) -
Method Summary
Modifier and TypeMethodDescriptionaddRepositoryListener
(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.setRepositoryListeners
(Collection<RepositoryListener> listeners)
-
Constructor Details
-
DefaultRepositoryEventDispatcher
Deprecated. -
DefaultRepositoryEventDispatcher
-
-
Method Details
-
addRepositoryListener
-
setRepositoryListeners
public DefaultRepositoryEventDispatcher setRepositoryListeners(Collection<RepositoryListener> listeners) -
initService
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
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
.
-