java Programming Glossary: classfilebuffer
how to retransform a class at runtime http://stackoverflow.com/questions/18567552/how-to-retransform-a-class-at-runtime classBeingRedefined ProtectionDomain protectionDomain byte classfileBuffer throws IllegalClassFormatException ModifyMethodTest tm new ModifyMethodTest.. ModifyMethodTest tm new ModifyMethodTest classfileBuffer byte byteArray null try byteArray tm.modiySleepMethod catch.. then transform it. Otherwise simply return the passed classfileBuffer unmodified. Make the set up calls outside the transformer i.e...
|