commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Carman" <>
Subject [proxy] InvocationRecorder?
Date Sat, 05 Apr 2008 15:08:36 GMT
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<RecordedInvocation> getRecordedInvocations();
  public <T> proxy(Class<T> 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

SafePropertyModel<Person> p = new SafePropertyModel<Person>(new Person());
TextField field = new TextField("name", p.bind(;

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

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

View raw message