org.sonatype.aether.impl
Interface LocalRepositoryEvent


public interface LocalRepositoryEvent

An event describing an update to the local repository.

Author:
Benjamin Bentmann
See Also:
LocalRepositoryMaintainer

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.
 

Method Detail

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 Sonatype, Inc.. All Rights Reserved.