commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Holger Hoffstätte (JIRA) <j...@apache.org>
Subject [jira] Commented: (LANG-324) Weak references with time limit?
Date Sun, 04 Mar 2007 16:18:50 GMT

    [ https://issues.apache.org/jira/browse/LANG-324?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12477797
] 

Holger Hoffstätte commented on LANG-324:
----------------------------------------

In light of the many problems with FileCleaner (in IO and FileUpload) I would like to suggest
that libraries like commons-lang and commons-io *never* create Threads, or - as is the case
here - a Timer. It would be much better to let the user inject the Thread/Timer/ScheduledExecutor(!)
in the constructor, otherwise the class has to manage a stateful objects' slifetime without
any good means to do so. Also, Timer itself is not such a great idea to begin with; ScheduledExecutorService
in JDK5+ and the backport lib is much more predictable and well-behaved, so making the actual
timing mechanism pluggable/replaceable has high value.


> Weak references with time limit?
> --------------------------------
>
>                 Key: LANG-324
>                 URL: https://issues.apache.org/jira/browse/LANG-324
>             Project: Commons Lang
>          Issue Type: New Feature
>            Reporter: Henri Yandell
>             Fix For: JDK 5.0 features
>
>
> Berin blogged about a useful util, might be something to add to a future Lang:
> http://jroller.com/page/bloritsch?entry=weakreferences_with_a_time_limit

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message