Return-Path: Delivered-To: apmail-commons-dev-archive@www.apache.org Received: (qmail 42834 invoked from network); 5 Apr 2008 15:09:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Apr 2008 15:09:08 -0000 Received: (qmail 95146 invoked by uid 500); 5 Apr 2008 15:09:07 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 95056 invoked by uid 500); 5 Apr 2008 15:09:07 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 95047 invoked by uid 99); 5 Apr 2008 15:09:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Apr 2008 08:09:07 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [64.233.166.183] (HELO py-out-1112.google.com) (64.233.166.183) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Apr 2008 15:08:26 +0000 Received: by py-out-1112.google.com with SMTP id p76so557628pyb.6 for ; Sat, 05 Apr 2008 08:08:38 -0700 (PDT) Received: by 10.35.98.3 with SMTP id a3mr4753759pym.15.1207408116842; Sat, 05 Apr 2008 08:08:36 -0700 (PDT) Received: by 10.35.131.1 with HTTP; Sat, 5 Apr 2008 08:08:36 -0700 (PDT) Message-ID: Date: Sat, 5 Apr 2008 11:08:36 -0400 From: "James Carman" Sender: jcarman@carmanconsulting.com To: "Jakarta Commons Developers List" Subject: [proxy] InvocationRecorder? MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Google-Sender-Auth: d6cabff6ac7363df X-Virus-Checked: Checked by ClamAV on apache.org What do you folks think about a new addition to Proxy which basically allows you to record invocations made on proxy objects, similar to how EasyMock does it. Here's the idea... public class InvocationRecorder { public List getRecordedInvocations(); public proxy(Class type); } public class RecordedInvocation { public Method getInvokedMethod(); public Object[] getArguments(); } The Wicket folks are doing something similar to build up their bindings for form components (https://issues.apache.org/jira/browse/WICKET-1327): SafePropertyModel p = new SafePropertyModel(new Person()); TextField field = new TextField("name", p.bind(p.property().getFirstName())); With this addition to Proxy, we can handle all the "recording" for them. They just have to figure out what to do with the recorded invocations. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org