org.objectweb.proactive.core.util
Class ClassDataCache

java.lang.Object
  extended byorg.objectweb.proactive.core.util.ClassDataCache

public class ClassDataCache
extends java.lang.Object

A cache for classes bytecode. It also contains bytecodes of stubs generated by the MOP.

Author:
Matthieu Morel

Method Summary
 void addClassData(java.lang.String fullname, byte[] classData)
          Associates classname and bytecode in the cache.
 boolean contains(java.lang.String className)
          Indicates whether the bytecode for the given class is already in cache.
 byte[] getClassData(java.lang.String fullname)
          Returns the bytecode for a given class name
static ClassDataCache instance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

instance

public static ClassDataCache instance()

contains

public boolean contains(java.lang.String className)
Indicates whether the bytecode for the given class is already in cache.

Parameters:
className - name of the class
Returns:
true if the class is in the cache

addClassData

public void addClassData(java.lang.String fullname,
                         byte[] classData)
Associates classname and bytecode in the cache.

Parameters:
fullname - name of the class
classData - bytecode of the class

getClassData

public byte[] getClassData(java.lang.String fullname)
Returns the bytecode for a given class name

Parameters:
fullname - the name of the class


Copyright ? April 2005 INRIA All Rights Reserved.