Query VM for number of object instances, possible?
I have a super duper java guru question:
Given a class object (or equivalently a class name and it's respective class loader), is there a way to determine if any instances of this class exist in the VM? I don't care how many, I just want to know if there are any at all. Perhaps another way to pose this question, do any
events get thrown when no more instances of a particular class exist?
Joe

