Package org.eclipse.aether
Class RepositoryEvent
java.lang.Object
org.eclipse.aether.RepositoryEvent
An event describing an action performed by the repository system. Note that events which indicate the end of an
 action like 
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.- See Also:
 
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA builder to create events.static enumThe type of the repository event. - 
Method Summary
Modifier and TypeMethodDescriptionGets the artifact involved in the event (if any).Gets the exception that caused the event (if any).Gets the exceptions that caused the event (if any).getFile()Deprecated.Gets the metadata involved in the event (if any).getPath()Gets the file involved in the event (if any).Gets the repository involved in the event (if any).Gets the repository system session during which the event occurred.getTrace()Gets the trace information about the request during which the event occurred.getType()Gets the type of the event.toString() 
- 
Method Details
- 
getType
Gets the type of the event.- Returns:
 - The type of the event, never 
null. 
 - 
getSession
Gets the repository system session during which the event occurred.- Returns:
 - The repository system session during which the event occurred, never 
null. 
 - 
getArtifact
Gets the artifact involved in the event (if any).- Returns:
 - The involved artifact or 
nullif none. 
 - 
getMetadata
Gets the metadata involved in the event (if any).- Returns:
 - The involved metadata or 
nullif none. 
 - 
getFile
Deprecated.UsegetPath()instead.Gets the file involved in the event (if any).- Returns:
 - The involved file or 
nullif none. 
 - 
getPath
Gets the file involved in the event (if any).- Returns:
 - The involved file or 
nullif none. - Since:
 - 2.0.0
 
 - 
getRepository
Gets the repository involved in the event (if any).- Returns:
 - The involved repository or 
nullif none. 
 - 
getException
Gets the exception that caused the event (if any). As a rule of thumb, an event accompanied by an exception indicates a failure of the corresponding action. If multiple exceptions occurred, this method returns the first exception.- Returns:
 - The exception or 
nullif none. 
 - 
getExceptions
Gets the exceptions that caused the event (if any). As a rule of thumb, an event accompanied by exceptions indicates a failure of the corresponding action.- Returns:
 - The exceptions, never 
null. 
 - 
getTrace
Gets the trace information about the request during which the event occurred.- Returns:
 - The trace information or 
nullif none. 
 - 
toString
 
 - 
 
getPath()instead.