ClassDefinition


ClassDefinition java.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( )



Java In A Nutshell
Java In A Nutshell, 5th Edition
ISBN: 0596007736
EAN: 2147483647
Year: 2004
Pages: 1220

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net