|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A service that provides access to versioned resources.
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 | |
Attributes |
getAttributes(Artifact artifact)
Return the metadata of an artifact as attributes. |
ClassLoader |
getClassLoader(Artifact artifact)
Creates a ClassLoader chain returning the lowest ClassLoader containing the jar artifact in the loader's path. |
ClassLoader |
getClassLoader(ClassLoader parent,
Artifact artifact)
Creates a ClassLoader chain returning the lowest ClassLoader containing the jar artifact in the loader's path. |
URL |
getResource(Artifact artifact)
Get a resource url relative to the supplied artifact. |
Field Detail |
public static final String KEY
public static final String SEPERATOR
Method Detail |
public Attributes getAttributes(Artifact artifact) throws RepositoryException
artifact
- the artifact
RepositoryException
- if an error occurs while resolving
artifact metadata attributespublic URL getResource(Artifact artifact) throws RepositoryException
artifact
- the artifact describing the resource
RepositoryException
public ClassLoader getClassLoader(Artifact artifact) throws RepositoryException
artifact
- the implementation artifact
RepositoryException
- if there is a problem caching and accessing
repository artifacts and reading their attributes.public ClassLoader getClassLoader(ClassLoader parent, Artifact artifact) throws RepositoryException
parent
- the parent classloaderartifact
- the implementation artifact
RepositoryException
- if there is a problem caching and accessing
repository artifacts and reading their attributes.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |