public interface RepositoryListener
artifactResolved(RepositoryEvent)
regardless whether it succeeded or failed so
listeners need to inspect the event details carefully. Also, the listener may be called from an arbitrary thread.
Note: Implementors are strongly advised to inherit from AbstractRepositoryListener
instead of
directly implementing this interface.RepositorySystemSession.getRepositoryListener()
,
TransferListener
Modifier and Type | Method and 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.
|
void artifactDescriptorInvalid(RepositoryEvent event)
RepositoryEvent.getArtifact()
indicates the artifact whose descriptor is invalid and
RepositoryEvent.getExceptions()
carries the encountered errors. Depending on the session's
ArtifactDescriptorPolicy
, the underlying repository operation might abort
with an exception or ignore the invalid descriptor.event
- The event details, must not be null
.void artifactDescriptorMissing(RepositoryEvent event)
RepositoryEvent.getArtifact()
indicates the
artifact whose descriptor is missing. Depending on the session's
ArtifactDescriptorPolicy
, the underlying repository operation might abort
with an exception or ignore the missing descriptor.event
- The event details, must not be null
.void metadataInvalid(RepositoryEvent event)
RepositoryEvent.getMetadata()
indicates the invalid metadata and RepositoryEvent.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.event
- The event details, must not be null
.void artifactResolving(RepositoryEvent event)
RepositoryEvent.getArtifact()
denotes
the artifact in question. Unlike the artifactDownloading(RepositoryEvent)
event, this event is fired
regardless whether the artifact already exists locally or not.event
- The event details, must not be null
.void artifactResolved(RepositoryEvent event)
RepositoryEvent.getArtifact()
denotes the artifact in question and
RepositoryEvent.getExceptions()
indicates whether the resolution succeeded or failed. Unlike the
artifactDownloaded(RepositoryEvent)
event, this event is fired regardless whether the artifact already
exists locally or not.event
- The event details, must not be null
.void metadataResolving(RepositoryEvent event)
RepositoryEvent.getMetadata()
denotes the metadata in question. Unlike the metadataDownloading(RepositoryEvent)
event, this event is
fired regardless whether the metadata already exists locally or not.event
- The event details, must not be null
.void metadataResolved(RepositoryEvent event)
RepositoryEvent.getMetadata()
denotes the metadata in question and
RepositoryEvent.getExceptions()
indicates whether the resolution succeeded or failed. Unlike the
metadataDownloaded(RepositoryEvent)
event, this event is fired regardless whether the metadata already
exists locally or not.event
- The event details, must not be null
.void artifactDownloading(RepositoryEvent event)
RepositoryEvent.getArtifact()
denotes the artifact in question and
RepositoryEvent.getRepository()
the source repository. Unlike the
artifactResolving(RepositoryEvent)
event, this event is only fired when the artifact does not already
exist locally.event
- The event details, must not be null
.void artifactDownloaded(RepositoryEvent event)
RepositoryEvent.getArtifact()
denotes the artifact in question and
RepositoryEvent.getExceptions()
indicates whether the download succeeded or failed. Unlike the
artifactResolved(RepositoryEvent)
event, this event is only fired when the artifact does not already
exist locally.event
- The event details, must not be null
.void metadataDownloading(RepositoryEvent event)
RepositoryEvent.getMetadata()
denotes the metadata in question and
RepositoryEvent.getRepository()
the source repository. Unlike the
metadataResolving(RepositoryEvent)
event, this event is only fired when the metadata does not already
exist locally.event
- The event details, must not be null
.void metadataDownloaded(RepositoryEvent event)
RepositoryEvent.getMetadata()
denotes the metadata in question and
RepositoryEvent.getExceptions()
indicates whether the download succeeded or failed. Unlike the
metadataResolved(RepositoryEvent)
event, this event is only fired when the metadata does not already
exist locally.event
- The event details, must not be null
.void artifactInstalling(RepositoryEvent event)
RepositoryEvent.getArtifact()
denotes the artifact in question.event
- The event details, must not be null
.void artifactInstalled(RepositoryEvent event)
RepositoryEvent.getArtifact()
denotes the artifact in question and
RepositoryEvent.getExceptions()
indicates whether the installation succeeded or failed.event
- The event details, must not be null
.void metadataInstalling(RepositoryEvent event)
RepositoryEvent.getMetadata()
denotes the metadata in question.event
- The event details, must not be null
.void metadataInstalled(RepositoryEvent event)
RepositoryEvent.getMetadata()
denotes the metadata in question and
RepositoryEvent.getExceptions()
indicates whether the installation succeeded or failed.event
- The event details, must not be null
.void artifactDeploying(RepositoryEvent event)
RepositoryEvent.getArtifact()
denotes the artifact in question and
RepositoryEvent.getRepository()
the destination repository.event
- The event details, must not be null
.void artifactDeployed(RepositoryEvent event)
RepositoryEvent.getArtifact()
denotes the artifact in question and
RepositoryEvent.getExceptions()
indicates whether the upload succeeded or failed.event
- The event details, must not be null
.void metadataDeploying(RepositoryEvent event)
RepositoryEvent.getMetadata()
denotes the metadata in question and
RepositoryEvent.getRepository()
the destination repository.event
- The event details, must not be null
.void metadataDeployed(RepositoryEvent event)
RepositoryEvent.getMetadata()
denotes the metadata in question and
RepositoryEvent.getExceptions()
indicates whether the upload succeeded or failed.event
- The event details, must not be null
.Copyright © 2010–2018 The Apache Software Foundation. All rights reserved.