|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sonatype.aether.util.listener.DefaultRepositoryEvent
public class DefaultRepositoryEvent
A simple repository event.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.sonatype.aether.RepositoryEvent |
---|
RepositoryEvent.EventType |
Constructor Summary | |
---|---|
DefaultRepositoryEvent(RepositoryEvent.EventType type,
RepositorySystemSession session)
Deprecated. |
|
DefaultRepositoryEvent(RepositoryEvent.EventType type,
RepositorySystemSession session,
RequestTrace trace)
Creates a new event with the specified properties. |
Method Summary | |
---|---|
Artifact |
getArtifact()
Gets the artifact involved in the event (if any). |
java.lang.Exception |
getException()
Gets the exception that caused the event (if any). |
java.util.List<java.lang.Exception> |
getExceptions()
Gets the exceptions that caused the event (if any). |
java.io.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(java.lang.Exception exception)
Sets the exception causing the event. |
DefaultRepositoryEvent |
setExceptions(java.util.List<java.lang.Exception> exceptions)
Sets the exceptions causing the event. |
DefaultRepositoryEvent |
setFile(java.io.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. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
@Deprecated public DefaultRepositoryEvent(RepositoryEvent.EventType type, RepositorySystemSession session)
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
.Method Detail |
---|
public RepositoryEvent.EventType getType()
RepositoryEvent
getType
in interface RepositoryEvent
null
.public RepositorySystemSession getSession()
RepositoryEvent
getSession
in interface RepositoryEvent
null
.public Artifact getArtifact()
RepositoryEvent
getArtifact
in interface RepositoryEvent
null
if none.public DefaultRepositoryEvent setArtifact(Artifact artifact)
artifact
- The involved artifact, may be null
.
null
.public Metadata getMetadata()
RepositoryEvent
getMetadata
in interface RepositoryEvent
null
if none.public DefaultRepositoryEvent setMetadata(Metadata metadata)
metadata
- The involved metadata, may be null
.
null
.public ArtifactRepository getRepository()
RepositoryEvent
getRepository
in interface RepositoryEvent
null
if none.public DefaultRepositoryEvent setRepository(ArtifactRepository repository)
repository
- The involved repository, may be null
.
null
.public java.io.File getFile()
RepositoryEvent
getFile
in interface RepositoryEvent
null
if none.public DefaultRepositoryEvent setFile(java.io.File file)
file
- The involved file, may be null
.
null
.public java.lang.Exception getException()
RepositoryEvent
getException
in interface RepositoryEvent
null
if none.public DefaultRepositoryEvent setException(java.lang.Exception exception)
exception
- The exception causing the event, may be null
.
null
.public java.util.List<java.lang.Exception> getExceptions()
RepositoryEvent
getExceptions
in interface RepositoryEvent
null
.public DefaultRepositoryEvent setExceptions(java.util.List<java.lang.Exception> exceptions)
exceptions
- The exceptions causing the event, may be null
.
null
.public RequestTrace getTrace()
RepositoryEvent
getTrace
in interface RepositoryEvent
null
if none.public DefaultRepositoryEvent setTrace(RequestTrace trace)
trace
- The trace information, may be null
.
null
.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |