Patent ID: 7426723

Claim:
A classfile modification method, comprising: before loading and using a classfile to create an object during runtime; converting said classfile into a collection of objects, said collection of objects including a first object that represents a method information structure found in said classfile, said collection of objections including a second object that inherits a property that said first object has, said second object representing a bytecode instruction of a method; adding a third object to said collection of objects, said third object inheriting the properties of said first object, said third object representing a bytecode instruction to be executed by said method that, when executed by said method, invokes a pre-existing dispatcher to identify a plug-in module for said method that said method invokes to report and/or record information about said method; adding a fourth object to said collection of objects that represents a new method information structure for said classfile, said new method information structure containing byte code instructions for a second method that registers, with said dispatcher upon loading of said classfile, an identity of said classfile's class and respective identities of methods of said classfile, said dispatcher and plug-in module being in existence prior to said loading of said classfile; and, converting said collection of objects including said third object into a modified version of said classfile.