http://developer.java.sun.com/developer/technicalArticles/ALT/RefObj/index.html
--- qikk <[EMAIL PROTECTED]> wrote:
> Hi:
>    The javadoc said that the PhantomReference class can help us do some
> pre-mortem jobs before the referent in the Reference is been reclaimed.
> But I am not sure how to do that work. I mean I have no idea what's the
> diff between the phantom ref and others when they had been enqueued into
> the ReferenceQueue.
> None of them can get() the referent(all will return null).
> So I am confused about what javadoc says  "Phantom references are most
> often used for scheduling pre-mortem cleanup actions in a more flexible
> way than is possible with the Java finalization mechanism. ". 
> So anyone can give me some full samples that use the phantom reference?
> 
> 
> Thanks a lot
> kert  
> 
> 
> 
> ____________________________________________________
> To change your JDJList options, please visit:
> http://www.sys-con.com/java/list.cfm
> 
> Be respectful! Clean up your posts before replying
> ____________________________________________________


=====
James Amos Nathaniel Stauffer 
Stauffer_James 
@yahoo.com 
Spam food: [EMAIL PROTECTED]

__________________________________________________
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/

____________________________________________________
To change your JDJList options, please visit:
http://www.sys-con.com/java/list.cfm

Be respectful! Clean up your posts before replying
____________________________________________________

Reply via email to