|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.ClassLoader
java.security.SecureClassLoader
shared.metaclass.RegistryClassLoader
public class RegistryClassLoader

A subclass of SecureClassLoader that derives classes and resource URLs from a registry delegation
chain.
| Nested Class Summary | |
|---|---|
protected class |
RegistryClassLoader.PrefixNode
A node class for policy hierarchy lookups. |
| Constructor Summary | |
|---|---|
RegistryClassLoader()
Default constructor. |
|
RegistryClassLoader(ClassLoader parent)
Alternate constructor. |
|
| Method Summary | |
|---|---|
RegistryClassLoader |
addClass(String className)
Adds a class which requires, for linking purposes, resources exclusive to this class loader. |
RegistryClassLoader |
addPackage(String packageName)
Adds a package whose classes require, for linking purposes, resources exclusive to this class loader. |
RegistryClassLoader |
addRegistry(ResourceRegistry registry)
Adds a registry to the delegation chain. |
protected Class<?> |
findClass(String className)
Attempts to derive a class from the registry delegation chain. |
protected URL |
findResource(String pathname)
|
protected Enumeration<URL> |
findResources(String pathname)
|
InputStream |
getResourceAsStream(String pathname)
Gets an InputStream to the resource at the given pathname. |
protected Class<?> |
loadClass(String className,
boolean resolve)
Attempts to derive a class first from this class loader's parent, and then from its findClass(String)
method. |
void |
loadLibrary(String libraryName)
Attempts to load a native library first from the class path, and then from the system's dynamic linker. |
String |
toString()
Creates a human-readable representation of this class loader. |
| Methods inherited from class java.security.SecureClassLoader |
|---|
defineClass, defineClass, getPermissions |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface shared.metaclass.ResourceRegistry |
|---|
getResource, getResources |
| Constructor Detail |
|---|
public RegistryClassLoader()
public RegistryClassLoader(ClassLoader parent)
| Method Detail |
|---|
protected Class<?> loadClass(String className,
boolean resolve)
throws ClassNotFoundException
findClass(String)
method.
loadClass in class ClassLoaderClassNotFoundException - when the class could not be found.
protected Class<?> findClass(String className)
throws ClassNotFoundException
findClass in class ClassLoaderClassNotFoundException - when the class could not be found.protected URL findResource(String pathname)
findResource in class ClassLoader
protected Enumeration<URL> findResources(String pathname)
throws IOException
findResources in class ClassLoaderIOExceptionpublic InputStream getResourceAsStream(String pathname)
ResourceRegistryInputStream to the resource at the given pathname.
getResourceAsStream in interface ResourceRegistrygetResourceAsStream in class ClassLoaderpathname - the resource pathname.
InputStream to the resource or null if not found.public void loadLibrary(String libraryName)
public RegistryClassLoader addRegistry(ResourceRegistry registry)
public RegistryClassLoader addClass(String className)
public RegistryClassLoader addPackage(String packageName)
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||