|
|||||||||||
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
org.objectweb.proactive.core.classloader.ProActiveClassLoader
This class defines a class loader that can fetch classes from other referenced ProActive runtimes. It is able to look for classes in the classpath and, according to the classloader delegation model, and because it is the system classloader, it will load *all* application classes except the system classes. When asked to load a class, this classloader successively tries to : 1. check if the class is a system class, in that case delegates to the parent classloader (primordial class loader) 2. delegate the loading to the super class URLClassLoader, which looks into the classpath. 3. delegate the search of the class data to a ProActiveClassLoaderHelper, then defines the class from the retreived data (bytecode) (if the local ProActiveRuntime has been created) The ProActiveClassLoaderHelper looks for the given class in other runtimes.
Constructor Summary | |
ProActiveClassLoader()
|
|
ProActiveClassLoader(java.lang.ClassLoader parent)
see ClassLoader.ClassLoader(java.lang.ClassLoader) and
ClassLoader.getSystemClassLoader() |
Method Summary | |
protected java.lang.Class |
findClass(java.lang.String name)
see ClassLoader.findClass(java.lang.String)
Looks for the given class in parents, classpath, and if not found delegates
the search to a ProActiveClassLoaderHelper |
java.lang.Class |
loadClass(java.lang.String name)
|
Methods inherited from class java.net.URLClassLoader |
addURL, definePackage, findResource, findResources, getPermissions, getURLs, newInstance, newInstance |
Methods inherited from class java.security.SecureClassLoader |
defineClass |
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 |
Constructor Detail |
public ProActiveClassLoader()
public ProActiveClassLoader(java.lang.ClassLoader parent)
ClassLoader.ClassLoader(java.lang.ClassLoader)
and
ClassLoader.getSystemClassLoader()
Method Detail |
protected java.lang.Class findClass(java.lang.String name) throws java.lang.ClassNotFoundException
ClassLoader.findClass(java.lang.String)
Looks for the given class in parents, classpath, and if not found delegates
the search to a ProActiveClassLoaderHelper
java.lang.ClassNotFoundException
public java.lang.Class loadClass(java.lang.String name) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |