Return-Path: Delivered-To: apmail-commons-dev-archive@www.apache.org Received: (qmail 45531 invoked from network); 17 Jul 2010 04:02:44 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 Jul 2010 04:02:44 -0000 Received: (qmail 36574 invoked by uid 500); 17 Jul 2010 04:02:43 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 36213 invoked by uid 500); 17 Jul 2010 04:02:40 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 36198 invoked by uid 99); 17 Jul 2010 04:02:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 Jul 2010 04:02:39 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gudnabrsam@gmail.com designates 209.85.212.43 as permitted sender) Received: from [209.85.212.43] (HELO mail-vw0-f43.google.com) (209.85.212.43) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 Jul 2010 04:02:30 +0000 Received: by vws4 with SMTP id 4so3068159vws.30 for ; Fri, 16 Jul 2010 21:01:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:mime-version:in-reply-to :references:content-type:message-id:content-transfer-encoding:from :subject:date:to:x-mailer; bh=/i4TeYe65ZoI57rxmxHrCjrtjx2PrsVRhBapWw4cl3I=; b=chQGnNTNWM71Q6ztx1f3EDoOv1TBkcB9GldA8RvfRdIcTzOEhJ3JYku293Sp+EkhS0 XTNjsAqXvwnYj7iO2EXijOoJZ5vRmiloJcESo+0emIkkkwqyPL/KVeuE4wIOtClVRGwK tXJ5QVeplNAgTQ5xnlK+plK95ekwYM+z/6yS8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:content-type:message-id :content-transfer-encoding:from:subject:date:to:x-mailer; b=RYZTQ9u0Uz3K9OH4RGAweSf3F5HkcQoWghMuLCvemneBNKCJgSs/NnD7KgIpC7KE8f +GkuTRJsvBkMa4i2U7EyD8kyLdZphIF0eWKRTc00O6MpgtHyeeQD8thEXdwGlAwLWItV FkPhd7we/xq2Egn3J1Nb3QeNZxD1bcLRvQyOk= Received: by 10.220.60.204 with SMTP id q12mr1078770vch.160.1279339268389; Fri, 16 Jul 2010 21:01:08 -0700 (PDT) Received: from [192.168.0.4] ([72.169.48.55]) by mx.google.com with ESMTPS id e1sm862086vch.20.2010.07.16.21.01.03 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 16 Jul 2010 21:01:07 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v753.1) In-Reply-To: References: <45BA46FE-7E47-4AB4-ADDD-13F5C79B2243@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Message-Id: <07011809-1BDB-46B9-93A5-47A3672D4EF3@gmail.com> Content-Transfer-Encoding: quoted-printable From: Matt Benson Subject: Re: [proxy] Changing the API to an interface (AGAIN)... Date: Fri, 16 Jul 2010 23:00:48 -0500 To: "Commons Developers List" X-Mailer: Apple Mail (2.753.1) X-Virus-Checked: Checked by ClamAV on apache.org On Jul 16, 2010, at 5:40 PM, J=F6rg Schaible wrote: > James Carman wrote: > >> On Fri, Jul 16, 2010 at 5:09 PM, Matt Benson =20 >> wrote: >>> >>> But you can agree that making the first class a separate argument >>> preserves the usability of varargs while accomplishing the typed =20 >>> result >>> in a single method? >>> >> >> Most definitely! I like that idea. I would think that would be the >> best way to kill two birds with one stone. > > This move worked out for proxytoys quite well ... ;-) Not sure why one of our own never mentioned the existence of =20 ProxyToys, but go figure. ;) I hate to exhibit NIH, but since I =20 jumped into [proxy] partly to find a home for my fluent stubbed proxy =20= code, I guess I'll persevere here. That said, James: what do you think about the fact that in ProxyToys =20= *everything* is about Invokers, and everything else is expressed in =20 those terms. So where [proxy] has an Interceptor, ProxyToys has a =20 Decorating Invoker, and where [proxy] delegates to an ObjectProvider, =20= ProxyToys uses a DelegatingInvoker. I can see how this makes for a =20 simpler interface. -Matt > > - J=F6rg > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org > For additional commands, e-mail: dev-help@commons.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org