Team LiB
Previous Section Next Section

ClassDefinitionjava.lang.instrument

Java 5.0

This class is a simple wrapper around a Class object and an array of bytes that represents a class file for that class. An array of ClassDefinition objects is passed to the redefineClasses( ) method of the Instrumentation class. Class redefinitions are allowed to change method implementations, but not the members or inheritance of a class or the signature of the methods.

public final class ClassDefinition {
// Public Constructors
     public ClassDefinition(Class<?> theClass, byte[ ] theClassFile);  
// Public Instance Methods
     public Class<?> getDefinitionClass( );  
     public byte[ ] getDefinitionClassFile( );  
}

Passed To

Instrumentation.redefineClasses( )

    Team LiB
    Previous Section Next Section