Package org.eclipse.aether
Class AbstractRepositoryListener
- java.lang.Object
-
- org.eclipse.aether.AbstractRepositoryListener
-
- All Implemented Interfaces:
RepositoryListener
- Direct Known Subclasses:
ChainedRepositoryListener
,ConsoleRepositoryListener
public abstract class AbstractRepositoryListener extends Object implements RepositoryListener
A skeleton implementation for custom repository listeners. The callback methods in this class do nothing.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractRepositoryListener()
Enables subclassing.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
artifactDeployed(RepositoryEvent event)
Notifies the listener of an artifact whose upload to a remote repository has been completed, either successfully or not.void
artifactDeploying(RepositoryEvent event)
Notifies the listener of an artifact that is about to be uploaded to a remote repository.void
artifactDescriptorInvalid(RepositoryEvent event)
Notifies the listener of a syntactically or semantically invalid artifact descriptor.void
artifactDescriptorMissing(RepositoryEvent event)
Notifies the listener of a missing artifact descriptor.void
artifactDownloaded(RepositoryEvent event)
Notifies the listener of an artifact whose download has been completed, either successfully or not.void
artifactDownloading(RepositoryEvent event)
Notifies the listener of an artifact that is about to be downloaded from a remote repository.void
artifactInstalled(RepositoryEvent event)
Notifies the listener of an artifact whose installation to the local repository has been completed, either successfully or not.void
artifactInstalling(RepositoryEvent event)
Notifies the listener of an artifact that is about to be installed to the local repository.void
artifactResolved(RepositoryEvent event)
Notifies the listener of an artifact whose resolution has been completed, either successfully or not.void
artifactResolving(RepositoryEvent event)
Notifies the listener of an artifact that is about to be resolved.void
metadataDeployed(RepositoryEvent event)
Notifies the listener of some metadata whose upload to a remote repository has been completed, either successfully or not.void
metadataDeploying(RepositoryEvent event)
Notifies the listener of some metadata that is about to be uploaded to a remote repository.void
metadataDownloaded(RepositoryEvent event)
Notifies the listener of some metadata whose download has been completed, either successfully or not.void
metadataDownloading(RepositoryEvent event)
Notifies the listener of some metadata that is about to be downloaded from a remote repository.void
metadataInstalled(RepositoryEvent event)
Notifies the listener of some metadata whose installation to the local repository has been completed, either successfully or not.void
metadataInstalling(RepositoryEvent event)
Notifies the listener of some metadata that is about to be installed to the local repository.void
metadataInvalid(RepositoryEvent event)
Notifies the listener of syntactically or semantically invalid metadata.void
metadataResolved(RepositoryEvent event)
Notifies the listener of some metadata whose resolution has been completed, either successfully or not.void
metadataResolving(RepositoryEvent event)
Notifies the listener of some metadata that is about to be resolved.
-
-
-
Constructor Detail
-
AbstractRepositoryListener
protected AbstractRepositoryListener()
Enables subclassing.
-
-
Method Detail
-
artifactDeployed
public void artifactDeployed(RepositoryEvent event)
Description copied from interface:RepositoryListener
Notifies the listener of an artifact whose upload to a remote repository has been completed, either successfully or not.RepositoryEvent.getArtifact()
denotes the artifact in question andRepositoryEvent.getExceptions()
indicates whether the upload succeeded or failed.- Specified by:
artifactDeployed
in interfaceRepositoryListener
- Parameters:
event
- The event details, must not benull
.
-
artifactDeploying
public void artifactDeploying(RepositoryEvent event)
Description copied from interface:RepositoryListener
Notifies the listener of an artifact that is about to be uploaded to a remote repository.RepositoryEvent.getArtifact()
denotes the artifact in question andRepositoryEvent.getRepository()
the destination repository.- Specified by:
artifactDeploying
in interfaceRepositoryListener
- Parameters:
event
- The event details, must not benull
.
-
artifactDescriptorInvalid
public void artifactDescriptorInvalid(RepositoryEvent event)
Description copied from interface:RepositoryListener
Notifies the listener of a syntactically or semantically invalid artifact descriptor.RepositoryEvent.getArtifact()
indicates the artifact whose descriptor is invalid andRepositoryEvent.getExceptions()
carries the encountered errors. Depending on the session'sArtifactDescriptorPolicy
, the underlying repository operation might abort with an exception or ignore the invalid descriptor.- Specified by:
artifactDescriptorInvalid
in interfaceRepositoryListener
- Parameters:
event
- The event details, must not benull
.
-
artifactDescriptorMissing
public void artifactDescriptorMissing(RepositoryEvent event)
Description copied from interface:RepositoryListener
Notifies the listener of a missing artifact descriptor.RepositoryEvent.getArtifact()
indicates the artifact whose descriptor is missing. Depending on the session'sArtifactDescriptorPolicy
, the underlying repository operation might abort with an exception or ignore the missing descriptor.- Specified by:
artifactDescriptorMissing
in interfaceRepositoryListener
- Parameters:
event
- The event details, must not benull
.
-
artifactDownloaded
public void artifactDownloaded(RepositoryEvent event)
Description copied from interface:RepositoryListener
Notifies the listener of an artifact whose download has been completed, either successfully or not.RepositoryEvent.getArtifact()
denotes the artifact in question andRepositoryEvent.getExceptions()
indicates whether the download succeeded or failed. Unlike theRepositoryListener.artifactResolved(RepositoryEvent)
event, this event is only fired when the artifact does not already exist locally.- Specified by:
artifactDownloaded
in interfaceRepositoryListener
- Parameters:
event
- The event details, must not benull
.
-
artifactDownloading
public void artifactDownloading(RepositoryEvent event)
Description copied from interface:RepositoryListener
Notifies the listener of an artifact that is about to be downloaded from a remote repository.RepositoryEvent.getArtifact()
denotes the artifact in question andRepositoryEvent.getRepository()
the source repository. Unlike theRepositoryListener.artifactResolving(RepositoryEvent)
event, this event is only fired when the artifact does not already exist locally.- Specified by:
artifactDownloading
in interfaceRepositoryListener
- Parameters:
event
- The event details, must not benull
.
-
artifactInstalled
public void artifactInstalled(RepositoryEvent event)
Description copied from interface:RepositoryListener
Notifies the listener of an artifact whose installation to the local repository has been completed, either successfully or not.RepositoryEvent.getArtifact()
denotes the artifact in question andRepositoryEvent.getExceptions()
indicates whether the installation succeeded or failed.- Specified by:
artifactInstalled
in interfaceRepositoryListener
- Parameters:
event
- The event details, must not benull
.
-
artifactInstalling
public void artifactInstalling(RepositoryEvent event)
Description copied from interface:RepositoryListener
Notifies the listener of an artifact that is about to be installed to the local repository.RepositoryEvent.getArtifact()
denotes the artifact in question.- Specified by:
artifactInstalling
in interfaceRepositoryListener
- Parameters:
event
- The event details, must not benull
.
-
artifactResolved
public void artifactResolved(RepositoryEvent event)
Description copied from interface:RepositoryListener
Notifies the listener of an artifact whose resolution has been completed, either successfully or not.RepositoryEvent.getArtifact()
denotes the artifact in question andRepositoryEvent.getExceptions()
indicates whether the resolution succeeded or failed. Unlike theRepositoryListener.artifactDownloaded(RepositoryEvent)
event, this event is fired regardless whether the artifact already exists locally or not.- Specified by:
artifactResolved
in interfaceRepositoryListener
- Parameters:
event
- The event details, must not benull
.
-
artifactResolving
public void artifactResolving(RepositoryEvent event)
Description copied from interface:RepositoryListener
Notifies the listener of an artifact that is about to be resolved.RepositoryEvent.getArtifact()
denotes the artifact in question. Unlike theRepositoryListener.artifactDownloading(RepositoryEvent)
event, this event is fired regardless whether the artifact already exists locally or not.- Specified by:
artifactResolving
in interfaceRepositoryListener
- Parameters:
event
- The event details, must not benull
.
-
metadataDeployed
public void metadataDeployed(RepositoryEvent event)
Description copied from interface:RepositoryListener
Notifies the listener of some metadata whose upload to a remote repository has been completed, either successfully or not.RepositoryEvent.getMetadata()
denotes the metadata in question andRepositoryEvent.getExceptions()
indicates whether the upload succeeded or failed.- Specified by:
metadataDeployed
in interfaceRepositoryListener
- Parameters:
event
- The event details, must not benull
.
-
metadataDeploying
public void metadataDeploying(RepositoryEvent event)
Description copied from interface:RepositoryListener
Notifies the listener of some metadata that is about to be uploaded to a remote repository.RepositoryEvent.getMetadata()
denotes the metadata in question andRepositoryEvent.getRepository()
the destination repository.- Specified by:
metadataDeploying
in interfaceRepositoryListener
- Parameters:
event
- The event details, must not benull
.
-
metadataDownloaded
public void metadataDownloaded(RepositoryEvent event)
Description copied from interface:RepositoryListener
Notifies the listener of some metadata whose download has been completed, either successfully or not.RepositoryEvent.getMetadata()
denotes the metadata in question andRepositoryEvent.getExceptions()
indicates whether the download succeeded or failed. Unlike theRepositoryListener.metadataResolved(RepositoryEvent)
event, this event is only fired when the metadata does not already exist locally.- Specified by:
metadataDownloaded
in interfaceRepositoryListener
- Parameters:
event
- The event details, must not benull
.
-
metadataDownloading
public void metadataDownloading(RepositoryEvent event)
Description copied from interface:RepositoryListener
Notifies the listener of some metadata that is about to be downloaded from a remote repository.RepositoryEvent.getMetadata()
denotes the metadata in question andRepositoryEvent.getRepository()
the source repository. Unlike theRepositoryListener.metadataResolving(RepositoryEvent)
event, this event is only fired when the metadata does not already exist locally.- Specified by:
metadataDownloading
in interfaceRepositoryListener
- Parameters:
event
- The event details, must not benull
.
-
metadataInstalled
public void metadataInstalled(RepositoryEvent event)
Description copied from interface:RepositoryListener
Notifies the listener of some metadata whose installation to the local repository has been completed, either successfully or not.RepositoryEvent.getMetadata()
denotes the metadata in question andRepositoryEvent.getExceptions()
indicates whether the installation succeeded or failed.- Specified by:
metadataInstalled
in interfaceRepositoryListener
- Parameters:
event
- The event details, must not benull
.
-
metadataInstalling
public void metadataInstalling(RepositoryEvent event)
Description copied from interface:RepositoryListener
Notifies the listener of some metadata that is about to be installed to the local repository.RepositoryEvent.getMetadata()
denotes the metadata in question.- Specified by:
metadataInstalling
in interfaceRepositoryListener
- Parameters:
event
- The event details, must not benull
.
-
metadataInvalid
public void metadataInvalid(RepositoryEvent event)
Description copied from interface:RepositoryListener
Notifies the listener of syntactically or semantically invalid metadata.RepositoryEvent.getMetadata()
indicates the invalid metadata andRepositoryEvent.getExceptions()
carries the encountered errors. The underlying repository operation might still succeed, depending on whether the metadata in question is actually needed to carry out the resolution process.- Specified by:
metadataInvalid
in interfaceRepositoryListener
- Parameters:
event
- The event details, must not benull
.
-
metadataResolved
public void metadataResolved(RepositoryEvent event)
Description copied from interface:RepositoryListener
Notifies the listener of some metadata whose resolution has been completed, either successfully or not.RepositoryEvent.getMetadata()
denotes the metadata in question andRepositoryEvent.getExceptions()
indicates whether the resolution succeeded or failed. Unlike theRepositoryListener.metadataDownloaded(RepositoryEvent)
event, this event is fired regardless whether the metadata already exists locally or not.- Specified by:
metadataResolved
in interfaceRepositoryListener
- Parameters:
event
- The event details, must not benull
.
-
metadataResolving
public void metadataResolving(RepositoryEvent event)
Description copied from interface:RepositoryListener
Notifies the listener of some metadata that is about to be resolved.RepositoryEvent.getMetadata()
denotes the metadata in question. Unlike theRepositoryListener.metadataDownloading(RepositoryEvent)
event, this event is fired regardless whether the metadata already exists locally or not.- Specified by:
metadataResolving
in interfaceRepositoryListener
- Parameters:
event
- The event details, must not benull
.
-
-