public interface RepositoryEvent
RepositoryEvent.EventType.ARTIFACT_RESOLVED are generally fired in both the success and the failure case. Use
getException() to check whether an event denotes success or failure.RepositoryListener| Modifier and Type | Interface and Description |
|---|---|
static class |
RepositoryEvent.EventType
The type of the repository event.
|
| Modifier and Type | Method and Description |
|---|---|
Artifact |
getArtifact()
Gets the artifact involved in the event (if any).
|
Exception |
getException()
Gets the exception that caused the event (if any).
|
List<Exception> |
getExceptions()
Gets the exceptions that caused the event (if any).
|
File |
getFile()
Gets the file involved in the event (if any).
|
Metadata |
getMetadata()
Gets the metadata involved in the event (if any).
|
ArtifactRepository |
getRepository()
Gets the repository involved in the event (if any).
|
RepositorySystemSession |
getSession()
Gets the repository system session during which the event occurred.
|
RequestTrace |
getTrace()
Gets the trace information about the request during which the event occurred.
|
RepositoryEvent.EventType |
getType()
Gets the type of the event.
|
RepositoryEvent.EventType getType()
null.RepositorySystemSession getSession()
null.Artifact getArtifact()
null if none.Metadata getMetadata()
null if none.File getFile()
null if none.ArtifactRepository getRepository()
null if none.Exception getException()
null if none.List<Exception> getExceptions()
null.RequestTrace getTrace()
null if none.Copyright © 2010-2012 Sonatype, Inc.. All Rights Reserved.