You know, while I was looking for the API docs for those
reference classes, in order to respond to Richard's question,
I realized that I didn't really understand what the
PhantomReference was used for.  At first blush, it
actually seems pretty useless.  I can see potential uses
for WeakReference, for implementing a memory-sensitive
cache (which appears to be the canonical example for that class),
and can understand how it would apply to something like
what Richard is trying to do.

Anyway, I decided to look for some more info on these classes,
and found what appears to be a good article on using them
at IBM DeveloperWorks.  I thought I'd post this here,
in case anybody else was interested in uses for these
classses...

http://www-106.ibm.com/developerworks/java/library/j-refs/?loc=dwmain


Also, I'd be interested in hearing if anybody on the list is using them for anything, or has any more thoughts on when / where / why / how to use these things; PhantomReference in particular.

TTYL,

Phillip


--
When the 1st Amendment no longer protects your voice.
And when the 4th Amendment no longer protects your privacy or your stuff.
Thank God we have the 2nd Amendment to tell our elected representatives that enough is enough.
It's time to put "... from my cold, dead hands" back where it belongs.


FREE AMERICA
Vote Libertarian
www.lp.org


_______________________________________________ Juglist mailing list [EMAIL PROTECTED] http://trijug.org/mailman/listinfo/juglist_trijug.org

Reply via email to