public class ChainedRepositoryListener extends AbstractRepositoryListener
Constructor and Description |
---|
ChainedRepositoryListener(Collection<RepositoryListener> listeners)
Creates a new multicast listener that delegates to the specified listeners.
|
ChainedRepositoryListener(RepositoryListener... listeners)
Creates a new multicast listener that delegates to the specified listeners.
|
public ChainedRepositoryListener(RepositoryListener... listeners)
listeners
- The listeners to delegate to, may be null
or empty.public ChainedRepositoryListener(Collection<RepositoryListener> listeners)
listeners
- The listeners to delegate to, may be null
or empty.public static RepositoryListener newInstance(RepositoryListener listener1, RepositoryListener listener2)
null
.listener1
- The first listener, may be null
.listener2
- The second listener, may be null
.null
if no listener was supplied.public void add(Collection<RepositoryListener> listeners)
listeners
- The listeners to add, may be null
or empty.public void add(RepositoryListener listener)
listener
- The listener to add, may be null
.public void remove(RepositoryListener listener)
listener
- The listener to remove, may be null
.protected void handleError(RepositoryEvent event, RepositoryListener listener, RuntimeException error)
public void artifactDeployed(RepositoryEvent event)
artifactDeployed
in interface RepositoryListener
artifactDeployed
in class AbstractRepositoryListener
public void artifactDeploying(RepositoryEvent event)
artifactDeploying
in interface RepositoryListener
artifactDeploying
in class AbstractRepositoryListener
public void artifactDescriptorInvalid(RepositoryEvent event)
artifactDescriptorInvalid
in interface RepositoryListener
artifactDescriptorInvalid
in class AbstractRepositoryListener
public void artifactDescriptorMissing(RepositoryEvent event)
artifactDescriptorMissing
in interface RepositoryListener
artifactDescriptorMissing
in class AbstractRepositoryListener
public void artifactDownloaded(RepositoryEvent event)
artifactDownloaded
in interface RepositoryListener
artifactDownloaded
in class AbstractRepositoryListener
public void artifactDownloading(RepositoryEvent event)
artifactDownloading
in interface RepositoryListener
artifactDownloading
in class AbstractRepositoryListener
public void artifactInstalled(RepositoryEvent event)
artifactInstalled
in interface RepositoryListener
artifactInstalled
in class AbstractRepositoryListener
public void artifactInstalling(RepositoryEvent event)
artifactInstalling
in interface RepositoryListener
artifactInstalling
in class AbstractRepositoryListener
public void artifactResolved(RepositoryEvent event)
artifactResolved
in interface RepositoryListener
artifactResolved
in class AbstractRepositoryListener
public void artifactResolving(RepositoryEvent event)
artifactResolving
in interface RepositoryListener
artifactResolving
in class AbstractRepositoryListener
public void metadataDeployed(RepositoryEvent event)
metadataDeployed
in interface RepositoryListener
metadataDeployed
in class AbstractRepositoryListener
public void metadataDeploying(RepositoryEvent event)
metadataDeploying
in interface RepositoryListener
metadataDeploying
in class AbstractRepositoryListener
public void metadataDownloaded(RepositoryEvent event)
metadataDownloaded
in interface RepositoryListener
metadataDownloaded
in class AbstractRepositoryListener
public void metadataDownloading(RepositoryEvent event)
metadataDownloading
in interface RepositoryListener
metadataDownloading
in class AbstractRepositoryListener
public void metadataInstalled(RepositoryEvent event)
metadataInstalled
in interface RepositoryListener
metadataInstalled
in class AbstractRepositoryListener
public void metadataInstalling(RepositoryEvent event)
metadataInstalling
in interface RepositoryListener
metadataInstalling
in class AbstractRepositoryListener
public void metadataInvalid(RepositoryEvent event)
metadataInvalid
in interface RepositoryListener
metadataInvalid
in class AbstractRepositoryListener
public void metadataResolved(RepositoryEvent event)
metadataResolved
in interface RepositoryListener
metadataResolved
in class AbstractRepositoryListener
public void metadataResolving(RepositoryEvent event)
metadataResolving
in interface RepositoryListener
metadataResolving
in class AbstractRepositoryListener
Copyright © 2010-2012 Sonatype, Inc.. All Rights Reserved.