org.objectweb.proactive.core.mop
Class MOPClassLoader

java.lang.Object
  extended byjava.lang.ClassLoader
      extended byjava.security.SecureClassLoader
          extended byjava.net.URLClassLoader
              extended byorg.objectweb.proactive.core.mop.MOPClassLoader

public class MOPClassLoader
extends java.net.URLClassLoader


Field Summary
static java.lang.String BYTE_CODE_MANIPULATOR
           
protected static java.util.Hashtable classDataCache
           
protected static MOPClassLoader mopCl
           
 
Constructor Summary
MOPClassLoader()
           
 
Method Summary
protected static MOPClassLoader createMOPClassLoader()
           
protected  java.lang.Class findClass(java.lang.String name)
           
 byte[] getClassData(java.lang.String classname)
          Get the bytecode of a stub given its name.
static MOPClassLoader getMOPClassLoader()
          Return the unique MOPClassLoader for the current JVM Create it if it does not exist
 void launchMain(java.lang.String[] args)
           
 java.lang.Class loadClass(java.lang.String name)
           
 java.lang.Class loadClass(java.lang.String name, java.lang.ClassLoader cl)
           
protected  java.lang.Class loadClass(java.lang.String name, java.lang.ClassLoader cl, boolean resolve)
           
 
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
 

Field Detail

BYTE_CODE_MANIPULATOR

public static java.lang.String BYTE_CODE_MANIPULATOR

classDataCache

protected static java.util.Hashtable classDataCache

mopCl

protected static MOPClassLoader mopCl
Constructor Detail

MOPClassLoader

public MOPClassLoader()
Method Detail

getMOPClassLoader

public static MOPClassLoader getMOPClassLoader()
Return the unique MOPClassLoader for the current JVM Create it if it does not exist


getClassData

public byte[] getClassData(java.lang.String classname)
Get the bytecode of a stub given its name. If the stub can not be found the cache, the MOPClassLoader tries to generate it.

Parameters:
classname - The name of the stub class
Returns:
An array representing the bytecode of the stub, null if the stub could not be found or created

launchMain

public void launchMain(java.lang.String[] args)
                throws java.lang.Throwable
Throws:
java.lang.Throwable

createMOPClassLoader

protected static MOPClassLoader createMOPClassLoader()

findClass

protected java.lang.Class findClass(java.lang.String name)
                             throws java.lang.ClassNotFoundException
Throws:
java.lang.ClassNotFoundException

loadClass

public java.lang.Class loadClass(java.lang.String name)
                          throws java.lang.ClassNotFoundException
Throws:
java.lang.ClassNotFoundException

loadClass

public java.lang.Class loadClass(java.lang.String name,
                                 java.lang.ClassLoader cl)
                          throws java.lang.ClassNotFoundException
Throws:
java.lang.ClassNotFoundException

loadClass

protected java.lang.Class loadClass(java.lang.String name,
                                    java.lang.ClassLoader cl,
                                    boolean resolve)
                             throws java.lang.ClassNotFoundException
Throws:
java.lang.ClassNotFoundException


Copyright ? April 2005 INRIA All Rights Reserved.