org.apache.geronimo.kernel.repository
Interface Repository

All Known Subinterfaces:
ListableRepository, WritableListableRepository, WriteableRepository
All Known Implementing Classes:
AbstractRepository, Maven2Repository

public interface Repository

Provides access to things like JARs via a standard API. This is a fairly limited read-only type repository. There are additional interfaces that a Repository may implement to indicate additional capabilities.

Version:
$Rev: 752595 $ $Date: 2009-03-12 03:47:56 +0800 (Thu, 12 Mar 2009) $

Method Summary
 boolean contains(Artifact artifact)
          Checks whether this repository contains an entry for the specified artifact.
 File getLocation(Artifact artifact)
          Gets the location on disk where the specified artifact is stored.
 

Method Detail

contains

boolean contains(Artifact artifact)
Checks whether this repository contains an entry for the specified artifact. The artifact must be fully resolved (isResolved() == true).


getLocation

File getLocation(Artifact artifact)
Gets the location on disk where the specified artifact is stored. The artifact must be fully resolved (isResolved() == true).

Returns:
The location of the artifact, or null if it is not in this repository.


Copyright © 2003-2013 The Apache Geronimo development community. All Rights Reserved.