Package org.eclipse.aether.internal.impl
Class DefaultRepositoryEventDispatcher
java.lang.Object
org.eclipse.aether.internal.impl.DefaultRepositoryEventDispatcher
- All Implemented Interfaces:
RepositoryEventDispatcher
,org.eclipse.aether.spi.locator.Service
@Singleton
@Named
public class DefaultRepositoryEventDispatcher
extends Object
implements RepositoryEventDispatcher, org.eclipse.aether.spi.locator.Service
-
Constructor Summary
ConstructorDescriptionDeprecated.DefaultRepositoryEventDispatcher
(Set<org.eclipse.aether.RepositoryListener> listeners) -
Method Summary
Modifier and TypeMethodDescriptionaddRepositoryListener
(org.eclipse.aether.RepositoryListener listener) void
dispatch
(org.eclipse.aether.RepositoryEvent event) Dispatches the specified repository event to all registered listeners.void
initService
(org.eclipse.aether.spi.locator.ServiceLocator locator) setRepositoryListeners
(Collection<org.eclipse.aether.RepositoryListener> listeners)
-
Constructor Details
-
DefaultRepositoryEventDispatcher
Deprecated. -
DefaultRepositoryEventDispatcher
@Inject public DefaultRepositoryEventDispatcher(Set<org.eclipse.aether.RepositoryListener> listeners)
-
-
Method Details
-
addRepositoryListener
public DefaultRepositoryEventDispatcher addRepositoryListener(org.eclipse.aether.RepositoryListener listener) -
setRepositoryListeners
public DefaultRepositoryEventDispatcher setRepositoryListeners(Collection<org.eclipse.aether.RepositoryListener> listeners) -
initService
- Specified by:
initService
in interfaceorg.eclipse.aether.spi.locator.Service
-
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
.
-