Home » geronimo-2.2-source-release » org.apache.geronimo.kernel.repository » [javadoc | source]
public interface: Repository [javadoc | source]

All Known Implementing Classes:
    LocalSourceRepository, ReadOnlyRepository, AbstractRepository, AbstractRepository, Maven2Repository, RepoWrapper, Maven2RepositoryAdapter, ListableRepository, WritableListableRepository, Maven2Repository, WriteableRepository

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.
Method from org.apache.geronimo.kernel.repository.Repository Summary:
contains,   getDependencies,   getLocation
Method from org.apache.geronimo.kernel.repository.Repository Detail:
 public boolean contains(Artifact artifact)
    Checks whether this repository contains an entry for the specified artifact. The artifact must be fully resolved (isResolved() == true).
 public LinkedHashSet<Artifact> getDependencies(Artifact artifact)
    Loads any dependencies for this artifact declared in META-INF/geronimo-dependency.xml within the configuration archive. This does not do anything special if the artifact is a configuration (which means it doesn't see dependencies in the ConfigurationData, etc.) so it's mainly useful for JAR-type artifacts.
 public File getLocation(Artifact artifact)
    Gets the location on disk where the specified artifact is stored. The artifact must be fully resolved (isResolved() == true).