commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: Commons-Pool : BasePoolableObjectFactory - generification in the roadmap ?
Date Tue, 16 Feb 2010 22:43:47 GMT
Hash: SHA1


On 2/16/2010 5:31 PM, Kay Kay wrote:
> On 2/16/10 2:20 PM, Christopher Schultz wrote:
> Kay,
> (Any relation to Jay Kay? That's guy's cool)
>>    not exactly :)


Maybe you could just wear a silly hat. That'd be enough.

>> I meant - something along the lines of -
>> PoolableObjectFactory<T> {
>>   void activateObject(T obj);
>>   destroyObject(T obj);
>>   T makeObject();
>>   void passivateObject(T obj);
>>   boolean validateObject(T obj);
>> }

Oh, I misunderstood your request: you mean that you want to use
"generics" in commons-pool.

I wasn't able to find any environment "requirements" for commons-pool,
but I suspect that the developers would like commons-pool to be usable
in pre-1.5 Java environments, where generic classes aren't available.

I have to admit that I'm not a big fan of generics in the first place...
just syntactic sugar that ends up making your code uglier than it would
be with plain-old casting. And, in Java, you don't even get RTTI which
is really too bad :(

If you'd like to use commons-pool as a basis for your own tools, you can
certainly modify the source code to add lots of < and > symbols if you
want. Also, patches are always welcome :)

- -chris
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla -


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message