|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avalon.repository.impl.DefaultFileRepository
A component that provides access to versioned resources based on an underlying file system.
Field Summary |
Fields inherited from interface org.apache.avalon.repository.Repository |
KEY, SEPERATOR |
Constructor Summary | |
DefaultFileRepository(File base)
|
|
DefaultFileRepository(File base,
ProxyContext context,
URL[] hosts)
|
|
DefaultFileRepository(File base,
URL[] hosts)
|
Method Summary | |
URL |
getArtifact(String artifact,
String version,
String type)
Get a resource relative to the supplied artifact name where the artifact name is equivalent to the group and resource name seperated by a colon. |
URL |
getArtifact(String group,
String name,
String version,
String type)
Get a resource relative to the supplied application name, resource name, version and resource type. |
String |
getLocation()
Return the repository location. |
BlockManifest |
install(URL url,
StringBuffer buffer)
Install a block archive into the repository. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultFileRepository(File base)
public DefaultFileRepository(File base, URL[] hosts)
public DefaultFileRepository(File base, ProxyContext context, URL[] hosts)
Method Detail |
public String getLocation()
getLocation
in interface Repository
public BlockManifest install(URL url, StringBuffer buffer) throws RepositoryException
install
in interface Repository
url
- the block archive urlbuffer
- a string buffer against which messages may be logged
RepositoryException
public URL getArtifact(String artifact, String version, String type) throws RepositoryException
getArtifact
in interface Repository
artifact
- the artifact nameversion
- the version identifiertype
- the resource type
RepositoryException
public URL getArtifact(String group, String name, String version, String type) throws RepositoryException
getArtifact
in interface Repository
group
- the application or group namename
- the resource nameversion
- the version identifiertype
- the resource type
RepositoryException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |