public class DefaultRepositoryEvent extends Object implements RepositoryEvent
RepositoryEvent.EventType| Constructor and Description |
|---|
DefaultRepositoryEvent(RepositoryEvent.EventType type,
RepositorySystemSession session)
Deprecated.
As of version 1.11, use
DefaultRepositoryEvent(org.sonatype.aether.RepositoryEvent.EventType, RepositorySystemSession, RequestTrace)
instead. |
DefaultRepositoryEvent(RepositoryEvent.EventType type,
RepositorySystemSession session,
RequestTrace trace)
Creates a new event with the specified properties.
|
| 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.
|
DefaultRepositoryEvent |
setArtifact(Artifact artifact)
Sets the artifact involved in the event.
|
DefaultRepositoryEvent |
setException(Exception exception)
Sets the exception causing the event.
|
DefaultRepositoryEvent |
setExceptions(List<Exception> exceptions)
Sets the exceptions causing the event.
|
DefaultRepositoryEvent |
setFile(File file)
Sets the file involved in the event.
|
DefaultRepositoryEvent |
setMetadata(Metadata metadata)
Sets the metadata involved in the event.
|
DefaultRepositoryEvent |
setRepository(ArtifactRepository repository)
Sets the repository involved in the event.
|
DefaultRepositoryEvent |
setTrace(RequestTrace trace)
Sets the trace information about the request during which the event occurred.
|
String |
toString() |
@Deprecated public DefaultRepositoryEvent(RepositoryEvent.EventType type, RepositorySystemSession session)
DefaultRepositoryEvent(org.sonatype.aether.RepositoryEvent.EventType, RepositorySystemSession, RequestTrace)
instead.type - The type of the event, must not be null.session - The repository system session, must not be null.public DefaultRepositoryEvent(RepositoryEvent.EventType type, RepositorySystemSession session, RequestTrace trace)
type - The type of the event, must not be null.session - The repository system session, must not be null.trace - The trace information, may be null.public RepositoryEvent.EventType getType()
RepositoryEventgetType in interface RepositoryEventnull.public RepositorySystemSession getSession()
RepositoryEventgetSession in interface RepositoryEventnull.public Artifact getArtifact()
RepositoryEventgetArtifact in interface RepositoryEventnull if none.public DefaultRepositoryEvent setArtifact(Artifact artifact)
artifact - The involved artifact, may be null.null.public Metadata getMetadata()
RepositoryEventgetMetadata in interface RepositoryEventnull if none.public DefaultRepositoryEvent setMetadata(Metadata metadata)
metadata - The involved metadata, may be null.null.public ArtifactRepository getRepository()
RepositoryEventgetRepository in interface RepositoryEventnull if none.public DefaultRepositoryEvent setRepository(ArtifactRepository repository)
repository - The involved repository, may be null.null.public File getFile()
RepositoryEventgetFile in interface RepositoryEventnull if none.public DefaultRepositoryEvent setFile(File file)
file - The involved file, may be null.null.public Exception getException()
RepositoryEventgetException in interface RepositoryEventnull if none.public DefaultRepositoryEvent setException(Exception exception)
exception - The exception causing the event, may be null.null.public List<Exception> getExceptions()
RepositoryEventgetExceptions in interface RepositoryEventnull.public DefaultRepositoryEvent setExceptions(List<Exception> exceptions)
exceptions - The exceptions causing the event, may be null.null.public RequestTrace getTrace()
RepositoryEventgetTrace in interface RepositoryEventnull if none.public DefaultRepositoryEvent setTrace(RequestTrace trace)
trace - The trace information, may be null.null.Copyright © 2010-2015 Sonatype, Inc.. All Rights Reserved.