commons-dev mailing list archives

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


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:
>             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:

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:
For additional commands, e-mail:

View raw message