commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Carman" <>
Subject Re: [ANNOUNCE] Release of Commons Proxy 1.0
Date Thu, 06 Mar 2008 20:33:13 GMT
Mr. Spies,

Commons Proxy has been around for quite some time.  I proposed the
project in August 2005.  It graduated to the Commons "proper" just
last September/October.

1.  Originally, ProxyFactory was an interface, but in order to help
maintain backward compatibility between releases, it was deemed more
appropriate (if less pure from an OO perspective) to make it a class.

2.  Yes, we'll probably cut a 2.0 release in the near future (1.1
should be out soon that supports serializing the proxies) that has
been JD5-ized.  Unfortunately, it might not be completely genericized.
 The methods take multiple classes that the proxy should support (one
of the gripes on HiveMind was that we couldn't support multiple
"service interfaces").  I might introduce genericized helper methods
like this:

public <T> createDelegatorProxy(ObjectProvider<T> provider, Class<T>

That would take care of a good percentage of the use cases.  Most
folks only use one interface/class for the proxy.

I hope Commons Proxy can be of use to you.  If you have any issues or
questions, feel free to ping the users list.  The traffic might get
others interested too! :)


On 3/6/08, Spies, Brennan <> wrote:
> Very cool and useful. Kind of funny, because I wrote something about a year
>  ago almost identical in functionality to the "Delegator" piece (where were
>  you guys then? <wink>), Javassist and CGLIB implementations included.
>  Just two questions:
>  1) Why isn't ProxyFactory an interface? This makes more sense when using the
>  lib, esp. in DI frameworks.
>  2) I know that Apache Java libs tend to favor compatibility with Java 1.4 and
>  earlier, but a lot of these classes/methods look like good candidates for
>  generics. Has there been any thought given to having a Java 5 version of the
>  lib with these?
>  Thanks,
>  Brennan Spies
>  Sr. Programmer Analyst
>  -----Original Message-----
>  From: [] On
>  Behalf Of James Carman
>  Sent: Thursday, March 06, 2008 11:49 AM
>  To:;;
>  Subject: [ANNOUNCE] Release of Commons Proxy 1.0
> We are pleased to announce the Commons Proxy 1.0 release.  Commons
>  Proxy makes creating dynamic proxies in Java easy!
>  Please visit the Commons Proxy site <>
>  for more information.
>  Thank you,
>  Commons Proxy Development Team
> ---------------------------------------------------------------------
>  To unsubscribe, e-mail:
>  For additional commands, e-mail:
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail:
>  For additional commands, e-mail:

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

View raw message