net.jxta.impl.loader
Class RefJxtaLoader
java.lang.Object
java.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
net.jxta.platform.JxtaLoader
net.jxta.impl.loader.RefJxtaLoader
- public class RefJxtaLoader
- extends JxtaLoader
This class is the reference implementation of the JxtaLoader.
Nested classes inherited from class java.lang.ClassLoader |
|
Methods inherited from class java.lang.ClassLoader |
clearAssertionStatus, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RefJxtaLoader
public RefJxtaLoader(URL[] urls,
CompatibilityEquater equator)
- Constuct a new loader for the specified URLS with the default parent
loader and specified compatibility equator.
- Parameters:
urls
- the URLs from which to load classes and resources.equator
- the equator to use in comparing compatibility statements.
RefJxtaLoader
public RefJxtaLoader(URL[] urls,
ClassLoader parent,
CompatibilityEquater equator)
- Constuct a new loader for the specified URLS with the specified parent
loader and specified compatibility equator.
- Parameters:
urls
- the URLs from which to load classes and resources.parent
- the parent class loader for delegation.equator
- the equator to use in comparing compatibility statements.
loadClass
protected Class loadClass(String name,
URL url,
boolean resolve)
throws ClassNotFoundException
- Make a stub for a version that uses URL, so that code that load
services can be written properly, even if it works only for classes
that do not need download.
- Throws:
ClassNotFoundException
loadClass
public Class loadClass(String name,
boolean resolve)
throws ClassNotFoundException
-
- Throws:
ClassNotFoundException
findClass
public Class findClass(ModuleSpecID spec)
throws ClassNotFoundException
-
- Throws:
ClassNotFoundException
loadClass
public Class loadClass(ModuleSpecID spec)
throws ClassNotFoundException
-
- Throws:
ClassNotFoundException
loadClass
public Class loadClass(String name,
URL url)
throws ClassNotFoundException
- Throws:
ClassNotFoundException
defineClass
public Class defineClass(ModuleImplAdvertisement impl)
throws ClassFormatError
-
- Throws:
ClassFormatError