B
Brian P. Bailey
I need to write a utility that intercepts an instruction to create a new
object and replace that object with something else during __runtime__
without access to the raw Java code. For example, if a bytecode instruction
desires to create a new Widget like so...
Widget widget = new Widget();
....then I would like to replace that bytecode instruction with...
Widget widget = new MyReplacementWidget();
I'm thinking that I need to do this at the classloader level, but am not
certain. Have any of you smart people run across any resources that might
clue me in?
TIA,
Brian P. Bailey
object and replace that object with something else during __runtime__
without access to the raw Java code. For example, if a bytecode instruction
desires to create a new Widget like so...
Widget widget = new Widget();
....then I would like to replace that bytecode instruction with...
Widget widget = new MyReplacementWidget();
I'm thinking that I need to do this at the classloader level, but am not
certain. Have any of you smart people run across any resources that might
clue me in?
TIA,
Brian P. Bailey