|
||||||||||
| 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). |
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()
|
| 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 RepositoryEventnull.public RepositorySystemSession getSession()
RepositoryEvent
getSession in interface RepositoryEventnull.public Artifact getArtifact()
RepositoryEvent
getArtifact in interface RepositoryEventnull if none.public DefaultRepositoryEvent setArtifact(Artifact artifact)
artifact - The involved artifact, may be null.
null.public Metadata getMetadata()
RepositoryEvent
getMetadata in interface RepositoryEventnull if none.public DefaultRepositoryEvent setMetadata(Metadata metadata)
metadata - The involved metadata, may be null.
null.public ArtifactRepository getRepository()
RepositoryEvent
getRepository in interface RepositoryEventnull if none.public DefaultRepositoryEvent setRepository(ArtifactRepository repository)
repository - The involved repository, may be null.
null.public File getFile()
RepositoryEvent
getFile in interface RepositoryEventnull if none.public DefaultRepositoryEvent setFile(File file)
file - The involved file, may be null.
null.public Exception getException()
RepositoryEvent
getException in interface RepositoryEventnull if none.public DefaultRepositoryEvent setException(Exception exception)
exception - The exception causing the event, may be null.
null.public List<Exception> getExceptions()
RepositoryEvent
getExceptions in interface RepositoryEventnull.public DefaultRepositoryEvent setExceptions(List<Exception> exceptions)
exceptions - The exceptions causing the event, may be null.
null.public RequestTrace getTrace()
RepositoryEvent
getTrace in interface RepositoryEventnull if none.public 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 | |||||||||