>>881
ファントム参照を使ってリファレンスキューを監視してればいいんじゃね
http://docs.oracle.com/javase/jp/7/api/java/lang/ref/PhantomReference.html