|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
edu.emory.mathcs.util.classloader.URIClassLoader
org.rioproject.boot.ServiceClassLoader
public class ServiceClassLoader
The ServiceClassLoader overrides getURLs(), ensuring all classes that need to be annotated with specific location(s) are returned appropriately
| Constructor Summary | |
|---|---|
ServiceClassLoader(URI[] searchPath,
ClassAnnotator annotator,
ClassLoader parent)
Constructs a new ServiceClassLoader for the specified URLs having the given parent. |
|
ServiceClassLoader(URI[] searchPath,
ClassAnnotator annotator,
ClassLoader parent,
Properties metaData)
Constructs a new ServiceClassLoader for the specified URLs having the given parent. |
|
| Method Summary | |
|---|---|
void |
addMetaData(Properties metaData)
Add meta data associated with the classloader |
void |
addURLs(URL[] urls)
Appends the specified URLs to the list of URLs to search for classes and resources. |
String |
getClassAnnotation()
Get the class annotations as determined by the ClassAnnotator |
ClassAnnotator |
getClassAnnotator()
Get the ClassAnnotator created at construction
time |
Properties |
getMetaData()
Get the meta data associated with this classloader |
URL[] |
getSearchPath()
Get the search path of URLs for loading classes and resources |
static URI[] |
getURIs(URL[] urls)
Convert a URL[] into a URI[] |
URL[] |
getURLs()
Get the URLs to be used for class annotations as determined by the ClassAnnotator |
String |
toString()
Returns a String representation of this class loader. |
| Methods inherited from class edu.emory.mathcs.util.classloader.URIClassLoader |
|---|
addURI, addURL, defineClass, findClass, findLibrary, findResource, findResources, getClassHandle, getJarHandler, getLibraryHandle, getResourceHandle, getResourceHandles |
| Methods inherited from class java.net.URLClassLoader |
|---|
definePackage, getPermissions, newInstance, newInstance |
| Methods inherited from class java.security.SecureClassLoader |
|---|
defineClass, defineClass |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ServiceClassLoader(URI[] searchPath,
ClassAnnotator annotator,
ClassLoader parent)
searchPath - Array of URIs to search for classesannotator - Array of URLs to use for the codebaseparent - Parent ClassLoader to delegate to
public ServiceClassLoader(URI[] searchPath,
ClassAnnotator annotator,
ClassLoader parent,
Properties metaData)
searchPath - Array of URIs to search for classesannotator - Array of URLs to use for the codebaseparent - Parent ClassLoader to delegate tometaData - Optional meta data associated with the classloader| Method Detail |
|---|
public ClassAnnotator getClassAnnotator()
ClassAnnotator created at construction
time
public Properties getMetaData()
public void addMetaData(Properties metaData)
metaData - Properties to associate to this classloader. If the
property already exists in the managed metaData, it will be replaced.
New properties will be added. A null parameter will be ignored.public URL[] getURLs()
ClassAnnotator
getURLs in class edu.emory.mathcs.util.classloader.URIClassLoader
public URL[] getSearchPath()
throws MalformedURLException
URL[] which corresponds to the search
path for the class loader; that is, the array elements are the locations
from which the class loader will load requested classes.
MalformedURLException - If any of the URis cannot be transformed
to URLspublic void addURLs(URL[] urls)
urls - The URLs to addpublic String getClassAnnotation()
ClassAnnotator
getClassAnnotation in interface ClassAnnotationClassAnnotation.getClassAnnotation()public String toString()
toString in class Object
public static URI[] getURIs(URL[] urls)
throws URISyntaxException
URL[] into a URI[]
urls - Array of URLs to convert
URISyntaxException - If there are errors converting the URLs to
URIs
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||