java.lang.instrument
Class ClassDefinition

java.lang.Object
  extended by java.lang.instrument.ClassDefinition

public final class ClassDefinition
extends Object

This class binds a class that will be redefined with a new class file.

Since:
1.5
See Also:
Instrumentation.redefineClasses(java.lang.instrument.ClassDefinition[])

Constructor Summary
ClassDefinition(Class<?> theClass, byte[] theClassFile)
           
 
Method Summary
 Class<?> getDefinitionClass()
           
 byte[] getDefinitionClassFile()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassDefinition

public ClassDefinition(Class<?> theClass,
                       byte[] theClassFile)
Parameters:
theClass - the Class that will be redefined
theClassFile - the new class file
Throws:
NullPointerException - if one of the argument is null
Method Detail

getDefinitionClass

public Class<?> getDefinitionClass()
Returns:
the Class

getDefinitionClassFile

public byte[] getDefinitionClassFile()
Returns:
the bytes