public final class RepositoryEvent extends Object
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
,
RepositoryEvent.Builder
Modifier and Type | Class and Description |
---|---|
static class |
RepositoryEvent.Builder
A builder to create events.
|
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.
|
String |
toString() |
public RepositoryEvent.EventType getType()
null
.public RepositorySystemSession getSession()
null
.public Artifact getArtifact()
null
if none.public Metadata getMetadata()
null
if none.public File getFile()
null
if none.public ArtifactRepository getRepository()
null
if none.public Exception getException()
null
if none.public List<Exception> getExceptions()
null
.public RequestTrace getTrace()
null
if none.Copyright © 2010–2021 The Apache Software Foundation. All rights reserved.