org.sonatype.aether.impl
Interface LocalRepositoryEvent

All Known Implementing Classes:
DefaultLocalRepositoryEvent

public interface LocalRepositoryEvent

An event describing an update to the local repository.

Author:
Benjamin Bentmann
See Also:
LocalRepositoryMaintainer

Nested Class Summary
static class LocalRepositoryEvent.EventType
          The type of the event.
 
Method Summary
 Artifact getArtifact()
          Gets the artifact that was updated.
 java.io.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.
 

Method Detail

getType

LocalRepositoryEvent.EventType getType()
Gets the type of the event.

Returns:
The type of the event, never null.

getSession

RepositorySystemSession getSession()
Gets the repository session from which this event originates.

Returns:
The repository session, never null.

getRepository

LocalRepository getRepository()
Gets the local repository which has been updated.

Returns:
The local repository, never null.

getArtifact

Artifact getArtifact()
Gets the artifact that was updated. Note that the file associated with this artifact need not point at the artifact's location within the local repository, use getFile() to query this path.

Returns:
The artifact, never null.

getFile

java.io.File getFile()
Gets the path to the artifact within the local repository.

Returns:
The path to the artifact in the local repository, never null.


Copyright © 2010-2011 Sonatype, Inc.. All Rights Reserved.