Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 13266 invoked from network); 16 Feb 2010 23:03:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Feb 2010 23:03:17 -0000 Received: (qmail 43820 invoked by uid 500); 16 Feb 2010 23:03:15 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 43705 invoked by uid 500); 16 Feb 2010 23:03:15 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 43695 invoked by uid 99); 16 Feb 2010 23:03:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Feb 2010 23:03:15 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of kaykay.unique@gmail.com designates 209.85.218.218 as permitted sender) Received: from [209.85.218.218] (HELO mail-bw0-f218.google.com) (209.85.218.218) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Feb 2010 23:03:04 +0000 Received: by bwz10 with SMTP id 10so209912bwz.35 for ; Tue, 16 Feb 2010 15:02:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=lgpNH9qhU7DBlJkW5e+3WGx0nomQSGl4wwdkpF6kC1A=; b=TeA9QyeALKroxDSNxqFhkauRTSNkk4JM8sz606OF3navnPyzozyERP9OPiT6O/Uj9e BPbyx2KcEtRaxKpP7+DhLXJLf/iRZrW5vZwUj3a9yu+xtF/vvjjWjbmNXBzvPAsA7uHG 4tzDW8JdlNFFuOIYWUiXmuI+Qu3RoLvs+SVGI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=QPD2PfGxncWauu1bP81Hlm9eVAj9Sgspu4HfawnrWrfa2vletVysd/zo8yzx1Q8Fi5 Dp2cjen1bbiNTKyfy6NWHOu1R2Arp4bXhcdMnfKzaU39nhOyIBYwom26PUHk2fhm7k0N kdh3BVM3x0T6E7ZPmWvygxSSYKa02aYzr7jKo= Received: by 10.204.48.197 with SMTP id s5mr4704817bkf.177.1266361363078; Tue, 16 Feb 2010 15:02:43 -0800 (PST) Received: from KayKayVoldeMort.local ([38.99.42.113]) by mx.google.com with ESMTPS id 13sm3366689bwz.2.2010.02.16.15.02.40 (version=SSLv3 cipher=RC4-MD5); Tue, 16 Feb 2010 15:02:42 -0800 (PST) Message-ID: <4B7B2525.4000002@gmail.com> Date: Tue, 16 Feb 2010 15:07:17 -0800 From: Kay Kay User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1 MIME-Version: 1.0 To: user@commons.apache.org Subject: Re: Commons-Pool : BasePoolableObjectFactory - generification in the roadmap ? References: <4B734836.4050106@gmail.com> <4B7B1A45.2030802@christopherschultz.net> <4B7B1CC2.80309@gmail.com> <4B7B1FA3.9020307@christopherschultz.net> In-Reply-To: <4B7B1FA3.9020307@christopherschultz.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 2/16/10 2:43 PM, Christopher Schultz wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Kay, > > 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 { >>> 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 :( > > That has been my biggest sore-point with generics too. There are some talks of 'reification' and similar constructs in java 7 , but i believe it has been postponed to the next release altogether as well. > 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 :) > > Good to know. Is this being actively maintained at the moment / does it warrant a separate branch for generics ? > - -chris > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAkt7H6IACgkQ9CaO5/Lv0PD0hACfbGrUuEN4RKCH8o3EJGTaV9sv > eWIAoIqM1pnMmwZcs6Wx1JY9+y1x1pdA > =XQow > -----END PGP SIGNATURE----- > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@commons.apache.org > For additional commands, e-mail: user-help@commons.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org