|
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)
Construct a new loader for the specified URLS with the specified parent loader and specified compatibility equator. |
|
RefJxtaLoader(URL[] urls,
CompatibilityEquater equator)
Construct a new loader for the specified URLS with the default parent loader and specified compatibility equator. |
Method Summary | |
---|---|
Class<? extends Module> |
defineClass(ModuleImplAdvertisement impl)
Defines a new class from a Module Impl Advertisement. |
Class<? extends Module> |
findClass(ModuleSpecID spec)
Finds and loads the class with the specified spec ID from the URL search path. |
ModuleImplAdvertisement |
findModuleImplAdvertisement(Class clazz)
Finds the ModuleImplAdvertisement for the associated class in the context of this ClassLoader. |
ModuleImplAdvertisement |
findModuleImplAdvertisement(ModuleSpecID msid)
Finds the ModuleImplAdvertisement for the associated class in the context of this ClassLoader. |
Class<? extends Module> |
loadClass(ModuleSpecID spec)
Loads the class with the specified spec ID from the URL search path. |
Class<? extends Module> |
loadClass(String name,
boolean resolve)
|
Class<? extends Module> |
loadClass(String name,
URL url)
Loads a class |
protected Class<? extends Module> |
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. |
String |
toString()
|
Methods inherited from class net.jxta.platform.JxtaLoader |
---|
addURL |
Methods inherited from class java.net.URLClassLoader |
---|
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, 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<? extends Module> loadClass(String name, URL url, boolean resolve) throws ClassNotFoundException
name
- The class name.url
- The location of the class.resolve
- If true
then resolve the class.
ClassNotFoundException
- if class not foundpublic Class<? extends Module> loadClass(String name, boolean resolve) throws ClassNotFoundException
loadClass
in class ClassLoader
ClassNotFoundException
public Class<? extends Module> findClass(ModuleSpecID spec) throws ClassNotFoundException
findClass
in class JxtaLoader
spec
- the specid of the class to load.
ClassNotFoundException
- if the class could not be found.public Class<? extends Module> loadClass(ModuleSpecID spec) throws ClassNotFoundException
loadClass
in class JxtaLoader
spec
- the specid of the class to load.
ClassNotFoundException
- if the class could not be found.public Class<? extends Module> loadClass(String name, URL url) throws ClassNotFoundException
name
- class nameurl
- url to class
ClassNotFoundException
- if class not foundpublic Class<? extends Module> defineClass(ModuleImplAdvertisement impl) throws ClassFormatError
defineClass
in class JxtaLoader
impl
- The moduleImplAdvertisement containing the class
specification
ClassFormatError
public ModuleImplAdvertisement findModuleImplAdvertisement(Class clazz)
findModuleImplAdvertisement
in class JxtaLoader
clazz
- The class who's ModuleImplAdvertisement is desired.
ModuleImplAdvertisement
otherwise
null
if there is no known association.public ModuleImplAdvertisement findModuleImplAdvertisement(ModuleSpecID msid)
findModuleImplAdvertisement
in class JxtaLoader
msid
- The module spec id who's ModuleImplAdvertisement is desired.
ModuleImplAdvertisement
otherwise
null
if there is no known association.public String toString()
toString
in class Object
|
JXSE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |