|
||||||||||
| 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. 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. |
|
| Method Summary | |
|---|---|
Artifact |
getArtifact()
|
Exception |
getException()
|
List<Exception> |
getExceptions()
|
File |
getFile()
|
Metadata |
getMetadata()
|
ArtifactRepository |
getRepository()
|
RepositorySystemSession |
getSession()
|
RequestTrace |
getTrace()
|
RepositoryEvent.EventType |
getType()
|
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()
|
| 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)
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.| Method Detail |
|---|
public RepositoryEvent.EventType getType()
getType in interface RepositoryEventpublic RepositorySystemSession getSession()
getSession in interface RepositoryEventpublic Artifact getArtifact()
getArtifact in interface RepositoryEventpublic DefaultRepositoryEvent setArtifact(Artifact artifact)
artifact - The involved artifact, may be null.
null.public Metadata getMetadata()
getMetadata in interface RepositoryEventpublic DefaultRepositoryEvent setMetadata(Metadata metadata)
metadata - The involved metadata, may be null.
null.public ArtifactRepository getRepository()
getRepository in interface RepositoryEventpublic DefaultRepositoryEvent setRepository(ArtifactRepository repository)
repository - The involved repository, may be null.
null.public File getFile()
getFile in interface RepositoryEventpublic DefaultRepositoryEvent setFile(File file)
file - The involved file, may be null.
null.public Exception getException()
getException in interface RepositoryEventpublic DefaultRepositoryEvent setException(Exception exception)
exception - The exception causing the event, may be null.
null.public List<Exception> getExceptions()
getExceptions in interface RepositoryEventpublic DefaultRepositoryEvent setExceptions(List<Exception> exceptions)
exceptions - The exceptions causing the event, may be null.
null.public RequestTrace getTrace()
getTrace in interface RepositoryEventpublic DefaultRepositoryEvent setTrace(RequestTrace trace)
trace - The trace information, may be null.
null.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||