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()
LocalRepositoryEvent
getType
in interface LocalRepositoryEvent
null
.public RepositorySystemSession getSession()
LocalRepositoryEvent
getSession
in interface LocalRepositoryEvent
null
.public LocalRepository getRepository()
LocalRepositoryEvent
getRepository
in interface LocalRepositoryEvent
null
.public Artifact getArtifact()
LocalRepositoryEvent
LocalRepositoryEvent.getFile()
to query this path.getArtifact
in interface LocalRepositoryEvent
null
.public File getFile()
LocalRepositoryEvent
getFile
in interface LocalRepositoryEvent
null
.Copyright © 2010-2012 Sonatype, Inc.. All Rights Reserved.