Package org.eclipse.aether
Class RepositoryEvent.Builder
java.lang.Object
org.eclipse.aether.RepositoryEvent.Builder
- Enclosing class:
- RepositoryEvent
A builder to create events.
- 
Constructor SummaryConstructorsConstructorDescriptionBuilder(RepositorySystemSession session, RepositoryEvent.EventType type) Creates a new event builder for the specified session and event type.
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Builds a new event from the current values of this builder.setArtifact(Artifact artifact) Sets the artifact involved in the event.setException(Exception exception) Sets the exception causing the event.setExceptions(List<Exception> exceptions) Sets the exceptions causing the event.Deprecated.setMetadata(Metadata metadata) Sets the metadata involved in the event.Sets the file involved in the event.setRepository(ArtifactRepository repository) Sets the repository involved in the event.setTrace(RequestTrace trace) Sets the trace information about the request during which the event occurred.
- 
Constructor Details- 
BuilderCreates a new event builder for the specified session and event type.- Parameters:
- session- The repository system session, must not be- null.
- type- The type of the event, must not be- null.
 
 
- 
- 
Method Details- 
setArtifactSets the artifact involved in the event.- Parameters:
- artifact- The involved artifact, may be- null.
- Returns:
- This event builder for chaining, never null.
 
- 
setMetadataSets the metadata involved in the event.- Parameters:
- metadata- The involved metadata, may be- null.
- Returns:
- This event builder for chaining, never null.
 
- 
setRepositorySets the repository involved in the event.- Parameters:
- repository- The involved repository, may be- null.
- Returns:
- This event builder for chaining, never null.
 
- 
setFileDeprecated.UsesetPath(Path)instead.Sets the file involved in the event.- Parameters:
- file- The involved file, may be- null.
- Returns:
- This event builder for chaining, never null.
 
- 
setPathSets the file involved in the event.- Parameters:
- path- The involved file, may be- null.
- Returns:
- This event builder for chaining, never null.
- Since:
- 2.0.0
 
- 
setExceptionSets the exception causing the event.- Parameters:
- exception- The exception causing the event, may be- null.
- Returns:
- This event builder for chaining, never null.
 
- 
setExceptionsSets the exceptions causing the event.- Parameters:
- exceptions- The exceptions causing the event, may be- null.
- Returns:
- This event builder for chaining, never null.
 
- 
setTraceSets the trace information about the request during which the event occurred.- Parameters:
- trace- The trace information, may be- null.
- Returns:
- This event builder for chaining, never null.
 
- 
buildBuilds a new event from the current values of this builder. The state of the builder itself remains unchanged.- Returns:
- The event, never null.
 
 
- 
setPath(Path)instead.