Project JXTA

net.jxta.impl.loader
Class RefJxtaLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by java.security.SecureClassLoader
          extended by java.net.URLClassLoader
              extended by net.jxta.platform.JxtaLoader
                  extended by net.jxta.impl.loader.RefJxtaLoader

public class RefJxtaLoader
extends JxtaLoader

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.ClassLoader
clearAssertionStatus, defineClass, 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
 

Constructor Detail

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.
Method Detail

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

Overrides:
loadClass in class ClassLoader
Throws:
ClassNotFoundException

findClass

public Class findClass(ModuleSpecID spec)
                throws ClassNotFoundException

Specified by:
findClass in class JxtaLoader
Throws:
ClassNotFoundException

loadClass

public Class loadClass(ModuleSpecID spec)
                throws ClassNotFoundException

Specified by:
loadClass in class JxtaLoader
Throws:
ClassNotFoundException

loadClass

public Class loadClass(String name,
                       URL url)
                throws ClassNotFoundException
Throws:
ClassNotFoundException

defineClass

public Class defineClass(ModuleImplAdvertisement impl)
                  throws ClassFormatError

Specified by:
defineClass in class JxtaLoader
Throws:
ClassFormatError

JXTA J2SE