org.sonatype.aether.impl.internal
Class DefaultLocalRepositoryEvent

java.lang.Object
  extended by org.sonatype.aether.impl.internal.DefaultLocalRepositoryEvent
All Implemented Interfaces:
LocalRepositoryEvent

public class DefaultLocalRepositoryEvent
extends Object
implements LocalRepositoryEvent

Author:
Benjamin Bentmann

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.sonatype.aether.impl.LocalRepositoryEvent
LocalRepositoryEvent.EventType
 
Constructor Summary
DefaultLocalRepositoryEvent(LocalRepositoryEvent.EventType type, RepositorySystemSession session, Artifact artifact, File file)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultLocalRepositoryEvent

public DefaultLocalRepositoryEvent(LocalRepositoryEvent.EventType type,
                                   RepositorySystemSession session,
                                   Artifact artifact,
                                   File file)
Method Detail

getType

public LocalRepositoryEvent.EventType getType()
Description copied from interface: LocalRepositoryEvent
Gets the type of the event.

Specified by:
getType in interface LocalRepositoryEvent
Returns:
The type of the event, never null.

getSession

public RepositorySystemSession getSession()
Description copied from interface: LocalRepositoryEvent
Gets the repository session from which this event originates.

Specified by:
getSession in interface LocalRepositoryEvent
Returns:
The repository session, never null.

getRepository

public LocalRepository getRepository()
Description copied from interface: LocalRepositoryEvent
Gets the local repository which has been updated.

Specified by:
getRepository in interface LocalRepositoryEvent
Returns:
The local repository, never null.

getArtifact

public Artifact getArtifact()
Description copied from interface: LocalRepositoryEvent
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 LocalRepositoryEvent.getFile() to query this path.

Specified by:
getArtifact in interface LocalRepositoryEvent
Returns:
The artifact, never null.

getFile

public File getFile()
Description copied from interface: LocalRepositoryEvent
Gets the path to the artifact within the local repository.

Specified by:
getFile in interface LocalRepositoryEvent
Returns:
The path to the artifact in the local repository, never null.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010-2012. All Rights Reserved.