commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jack, Paul" <pj...@sfaf.org>
Subject RE: [collections] - Few more collections for the masses... (impor tant for Struts view objects, maybe other projects)
Date Fri, 17 May 2002 17:31:29 GMT
> I don't claim to have fully grokked the reason for the Reserve*
collections
> yet but shouldn't they take a Factory object instead of a Class instance
and
> array of argument types and an array of argument instances? Something
along
> these lines...
> 
> public interface Factory {
>     Object createObject();
> }

Christopher Marshal's proposed patch to SoftRefHashMap also uses more or
less the exact same interface; seems a useful addition, though agonizingly
vague.

We'd probably want a reflection-based default implementation somewhere.

-Paul

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


Mime
View raw message