|
Project JXTA | |||||||||
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
net.jxta.platform.JxtaLoader
net.jxta.impl.loader.RefJxtaLoader
public class RefJxtaLoader
This class is the reference implementation of the JxtaLoader.
Constructor Summary | |
---|---|
RefJxtaLoader(URL[] urls,
ClassLoader parent,
CompatibilityEquater equator)
Constuct a new loader for the specified URLS with the specified parent loader and specified compatibility equator. |
|
RefJxtaLoader(URL[] urls,
CompatibilityEquater equator)
Constuct a new loader for the specified URLS with the default parent loader and specified compatibility equator. |
Method Summary | |
---|---|
Class |
defineClass(ModuleImplAdvertisement impl)
|
Class |
findClass(ModuleSpecID spec)
|
Class |
loadClass(ModuleSpecID spec)
|
Class |
loadClass(String name,
boolean resolve)
|
Class |
loadClass(String name,
URL url)
|
protected Class |
loadClass(String name,
URL url,
boolean resolve)
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. |
Methods inherited from class java.net.URLClassLoader |
---|
addURL, definePackage, findClass, findResource, findResources, getPermissions, getURLs, 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, toString, wait, wait, wait |
Constructor Detail |
---|
public RefJxtaLoader(URL[] urls, CompatibilityEquater equator)
urls
- the URLs from which to load classes and resources.equator
- the equator to use in comparing compatibility statements.public RefJxtaLoader(URL[] urls, ClassLoader parent, CompatibilityEquater equator)
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.Method Detail |
---|
protected Class loadClass(String name, URL url, boolean resolve) throws ClassNotFoundException
ClassNotFoundException
public Class loadClass(String name, boolean resolve) throws ClassNotFoundException
loadClass
in class ClassLoader
ClassNotFoundException
public Class findClass(ModuleSpecID spec) throws ClassNotFoundException
findClass
in class JxtaLoader
ClassNotFoundException
public Class loadClass(ModuleSpecID spec) throws ClassNotFoundException
loadClass
in class JxtaLoader
ClassNotFoundException
public Class loadClass(String name, URL url) throws ClassNotFoundException
ClassNotFoundException
public Class defineClass(ModuleImplAdvertisement impl) throws ClassFormatError
defineClass
in class JxtaLoader
ClassFormatError
|
JXTA J2SE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |