org.sonatype.aether.impl.internal
Class DefaultRepositoryEventDispatcher
java.lang.Object
org.sonatype.aether.impl.internal.DefaultRepositoryEventDispatcher
- All Implemented Interfaces:
- RepositoryEventDispatcher, Service
@Component(role=RepositoryEventDispatcher.class)
public class DefaultRepositoryEventDispatcher
- extends java.lang.Object
- implements RepositoryEventDispatcher, Service
- Author:
- Benjamin Bentmann
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultRepositoryEventDispatcher
public DefaultRepositoryEventDispatcher()
DefaultRepositoryEventDispatcher
public DefaultRepositoryEventDispatcher(Logger logger,
java.util.List<RepositoryListener> listeners)
DefaultRepositoryEventDispatcher
public DefaultRepositoryEventDispatcher(Logger logger,
java.util.List<RepositoryListener> listeners,
java.util.List<LocalRepositoryMaintainer> localRepositoryMaintainers)
setLogger
public DefaultRepositoryEventDispatcher setLogger(Logger logger)
addListener
public DefaultRepositoryEventDispatcher addListener(RepositoryListener listener)
setListeners
public DefaultRepositoryEventDispatcher setListeners(java.util.List<RepositoryListener> listeners)
addLocalRepositoryMaintainer
public DefaultRepositoryEventDispatcher addLocalRepositoryMaintainer(LocalRepositoryMaintainer maintainer)
setLocalRepositoryMaintainers
public DefaultRepositoryEventDispatcher setLocalRepositoryMaintainers(java.util.List<LocalRepositoryMaintainer> maintainers)
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 interface Service
- Parameters:
locator
- The service locator, must not be null
.
dispatch
public void dispatch(RepositoryEvent event)
- Description copied from interface:
RepositoryEventDispatcher
- Dispatches the specified repository event to all registered listeners.
- Specified by:
dispatch
in interface RepositoryEventDispatcher
- Parameters:
event
- The event to dispatch, must not be null
.
Copyright © 2010-2011 Sonatype, Inc.. All Rights Reserved.