org.apache.geronimo.kernel.repository
Interface ListableRepository

All Superinterfaces:
Repository
All Known Subinterfaces:
WritableListableRepository
All Known Implementing Classes:
LocalSourceRepository, Maven2Repository, Maven2Repository, Maven2RepositoryAdapter

public interface ListableRepository
extends Repository

For repositories that can provide a list of their contents. Normally local ones can handle it, but remote ones may or may not implement this.


Method Summary
 SortedSet<Artifact> list()
          Gets a set (with entries of type Artifact) of all the items available in the repository.
 SortedSet<Artifact> list(Artifact query)
          Gets a set (with entries of type Artifact) of all the available items matching the specified artifact, which is normally not fully resolved (so the results all match whatever fields are specified on the argument Artifact).
 
Methods inherited from interface org.apache.geronimo.kernel.repository.Repository
contains, getDependencies, getLocation
 

Method Detail

list

SortedSet<Artifact> list()
Gets a set (with entries of type Artifact) of all the items available in the repository.

Returns:
sorted list of artifacts in the repository

list

SortedSet<Artifact> list(Artifact query)
Gets a set (with entries of type Artifact) of all the available items matching the specified artifact, which is normally not fully resolved (so the results all match whatever fields are specified on the argument Artifact).

Parameters:
query - match for repository
Returns:
sorted list of artifacts in the repository that match the query.


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