org.apache.geronimo.kernel.repository
Class Maven1Repository
java.lang.Object
org.apache.geronimo.kernel.repository.AbstractRepository
org.apache.geronimo.kernel.repository.Maven1Repository
- All Implemented Interfaces:
- ListableRepository, Repository, WritableListableRepository, WriteableRepository
- Direct Known Subclasses:
- Maven1Repository
public class Maven1Repository
- extends AbstractRepository
- implements WritableListableRepository
Method Summary |
String[] |
getFiles(File base,
String prefix)
|
File |
getLocation(Artifact artifact)
Gets the location on disk where the specified artifact is stored. |
SortedSet |
list()
Gets a set (with entries of type Artifact) of all the items available
in the repository. |
SortedSet |
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 class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Maven1Repository
public Maven1Repository(File rootFile)
getLocation
public File getLocation(Artifact artifact)
- Description copied from interface:
Repository
- Gets the location on disk where the specified artifact is stored.
The artifact must be fully resolved (isResolved() == true).
- Specified by:
getLocation
in interface Repository
- Returns:
- The location of the artifact, or null if it is not in this
repository.
list
public SortedSet list(Artifact query)
- Description copied from interface:
ListableRepository
- 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).
- Specified by:
list
in interface ListableRepository
list
public SortedSet list()
- Description copied from interface:
ListableRepository
- Gets a set (with entries of type Artifact) of all the items available
in the repository.
- Specified by:
list
in interface ListableRepository
getFiles
public String[] getFiles(File base,
String prefix)
Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.