public class DefaultLocalRepositoryEvent extends Object implements LocalRepositoryEvent
LocalRepositoryEvent.EventType| Constructor and Description |
|---|
DefaultLocalRepositoryEvent(LocalRepositoryEvent.EventType type,
RepositorySystemSession session,
Artifact artifact,
File file) |
| Modifier and Type | Method and Description |
|---|---|
Artifact |
getArtifact()
Gets the artifact that was updated.
|
File |
getFile()
Gets the path to the artifact within the local repository.
|
LocalRepository |
getRepository()
Gets the local repository which has been updated.
|
RepositorySystemSession |
getSession()
Gets the repository session from which this event originates.
|
LocalRepositoryEvent.EventType |
getType()
Gets the type of the event.
|
String |
toString() |
public DefaultLocalRepositoryEvent(LocalRepositoryEvent.EventType type, RepositorySystemSession session, Artifact artifact, File file)
public LocalRepositoryEvent.EventType getType()
LocalRepositoryEventgetType in interface LocalRepositoryEventnull.public RepositorySystemSession getSession()
LocalRepositoryEventgetSession in interface LocalRepositoryEventnull.public LocalRepository getRepository()
LocalRepositoryEventgetRepository in interface LocalRepositoryEventnull.public Artifact getArtifact()
LocalRepositoryEventLocalRepositoryEvent.getFile() to query this path.getArtifact in interface LocalRepositoryEventnull.public File getFile()
LocalRepositoryEventgetFile in interface LocalRepositoryEventnull.Copyright © 2010-2015 Sonatype, Inc.. All Rights Reserved.