|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avalon.repository.impl.DefaultRepository
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 | |
DefaultRepository(CacheManager cache,
String[] hosts)
Creation of a new instance of the default repository. |
Method Summary | |
Attributes |
getAttributes(Artifact artifact)
Return the metadata attribututes associated with an artifact. |
ClassLoader |
getClassLoader(Artifact artifact)
Returns a classloader based on the metadata associated with a supplied artifact. |
ClassLoader |
getClassLoader(ClassLoader parent,
Artifact artifact)
Returns a classloader based on the metadata associated with a supplied artifact. |
URL |
getResource(Artifact artifact)
Get a resource url relative to the supplied artifact. |
String |
toString()
Return a string representation of this repository. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DefaultRepository(CacheManager cache, String[] hosts)
cache
- the cache manager assigned to the repositoryhosts
- the set of remote hosts
NullPointerException
- if the cache or hosts argument
is nullMethod Detail |
public Attributes getAttributes(Artifact artifact) throws RepositoryException
getAttributes
in interface Repository
artifact
- the relative artifact from which a .meta resource will
be resolved to establish the artifact attributes
RepositoryException
- if an error occurs while retrieving
or building the attributes
NullPointerException
- if the supplied artifact is nullpublic URL getResource(Artifact artifact) throws RepositoryException
getResource
in interface Repository
artifact
- the artifact describing the resource
RepositoryException
public ClassLoader getClassLoader(Artifact artifact) throws RepositoryException
getClassLoader
in interface Repository
artifact
- the artifact fro which dependency metadata
will be resolved
RepositoryException
- if there is a problem caching and accessing
repository artifacts and reading their attributes.public ClassLoader getClassLoader(ClassLoader parent, Artifact artifact) throws RepositoryException
getClassLoader
in interface Repository
parent
- the parent classloaderartifact
- the implementation artifact
RepositoryException
- if there is a problem caching and accessing
repository artifacts and reading their attributes.public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |