|
||||||||||
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
public class 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)
|
Method Summary | |
---|---|
protected java.lang.Class<?> |
findClass(java.lang.String name)
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)
|
static java.net.URL[] |
pathToURLs(java.lang.String _classpath)
Transforms the string classpath to and URL array based classpath. |
Methods inherited from class java.net.URLClassLoader |
---|
addURL, definePackage, 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 |
---|
public ProActiveClassLoader()
public ProActiveClassLoader(java.lang.ClassLoader parent)
Method Detail |
---|
protected java.lang.Class<?> findClass(java.lang.String name) throws java.lang.ClassNotFoundException
findClass
in class java.net.URLClassLoader
java.lang.ClassNotFoundException
ClassLoader.findClass(java.lang.String)
public java.lang.Class<?> loadClass(java.lang.String name) throws java.lang.ClassNotFoundException
loadClass
in class java.lang.ClassLoader
java.lang.ClassNotFoundException
public static java.net.URL[] pathToURLs(java.lang.String _classpath)
_classpath
- a classpath string
java.net.MalformedURLException
- if a malformed URL has occurred in the classpath string.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |