org.apache.avalon.repository
Interface Repository

All Known Implementing Classes:
DefaultFileRepository

public interface Repository

A service that provides access to versioned resources.

Version:
$Revision: 1.2 $ $Date: 2003/09/14 13:07:15 $
Author:
Stephen McConnell

Field Summary
static String KEY
          The context resolution key.
static String SEPERATOR
          The seperator character between the group and resource name values in an artifact name.
 
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 the colon character.
 URL getArtifact(String group, String name, String version, String type)
          Get a resource url 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.
 

Field Detail

KEY

public static final String KEY
The context resolution key.

See Also:
Constant Field Values

SEPERATOR

public static final String SEPERATOR
The seperator character between the group and resource name values in an artifact name.

See Also:
Constant Field Values
Method Detail

install

public BlockManifest install(URL url,
                             StringBuffer buffer)
                      throws RepositoryException
Install a block archive into the repository.

Parameters:
url - the block archive url
Returns:
the block manifest
Throws:
RepositoryException

getArtifact

public URL getArtifact(String artifact,
                       String version,
                       String type)
                throws RepositoryException
Get a resource relative to the supplied artifact name where the artifact name is equivalent to the group and resource name seperated by the colon character.

Parameters:
artifact - the artifact name
version - the version identifier
type - the resource type
Returns:
the resource
Throws:
RepositoryException

getArtifact

public URL getArtifact(String group,
                       String name,
                       String version,
                       String type)
                throws RepositoryException
Get a resource url relative to the supplied application name, resource name, version and resource type.

Parameters:
group - the application or group name
name - the resource name
version - the version identifier
type - the resource type
Returns:
the resource url
Throws:
RepositoryException

getLocation

public String getLocation()
Return the repository location.

Returns:
the location


Copyright © Apache Software Foundation. All Rights Reserved.