posted 15 years ago
It seems to me that it would be better for me to instrument the classes by Javassist and modify their constructors so that whenever a new instance of the target class is created it will add a reference of itself to a global static data structure. (rather than having me to searching thru all the object reference recursively)
Would there be any tutorial available on using Javassist to modify the constructor of a class?