|
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
public abstract class JxtaLoader
A ClassLoader which provides additional JXTA functionality. You can load classes by ModuleSpecID. Classes are defiend with ModuleImplAdvertisements and class loading will determine suitability using the provided compatiblity statements.
Constructor Summary | |
---|---|
JxtaLoader(ClassLoader parent)
Constuct a new loader with the specified parent loader and |
|
JxtaLoader(URL[] urls,
ClassLoader parent)
Constuct a new loader for the specified URLS with the specified parent loader. |
Method Summary | |
---|---|
abstract Class |
defineClass(ModuleImplAdvertisement impl)
Defines a new class from a Module Impl Advertisement. |
abstract Class |
findClass(ModuleSpecID spec)
Finds and loads the class with the specified spec ID from the URL search path. |
abstract Class |
loadClass(ModuleSpecID spec)
Loads the class with the specified spec ID from the URL search path. |
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 JxtaLoader(ClassLoader parent)
parent
- the parent class loader for delegation.public JxtaLoader(URL[] urls, ClassLoader parent)
urls
- the URLs from which to load classes and resources.parent
- the parent class loader for delegation.Method Detail |
---|
public abstract Class findClass(ModuleSpecID spec) throws ClassNotFoundException
spec
- the specid of the class to load.
ClassNotFoundException
- if the class could not be found.public abstract Class loadClass(ModuleSpecID spec) throws ClassNotFoundException
spec
- the specid of the class to load.
ClassNotFoundException
- if the class could not be found.public abstract Class defineClass(ModuleImplAdvertisement impl)
impl
- The moduleImplAdvertisement containing the class
specification
|
JXTA J2SE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |