On Sep 21, 2010, at 2:23 AM, Jörg Schaible wrote: > Hi Matt and James, > > Matt Benson wrote: > >> >> On Sep 20, 2010, at 6:11 PM, James Carman wrote: >> >>> On Mon, Sep 20, 2010 at 7:01 PM, Matt Benson <gudnabr...@gmail.com> >>> wrote: >>>> >>>> This would seem quite complicated to execute, would it not? >>>> >>> >>> What do you propose? >>> >> >> I don't know for sure yet. My initial reaction would have been to try and >> consolidate the current handling somehow down to AbstractProxyFactory, >> then control whether proxies used the default behavior with a simple >> boolean property. This would therefore be what it is today: a detail of >> the existing ProxyFactory implementations. > > the standard invoker in ProxyToys does simply call the methods of the > proxied objects. However, it depends on the actual proxy type, if this > default is replaced with something else (e.g. all delegating proxies will > handle equal and hashCode differently). > > Bottom line is that it depends on the proxies' purpose, but it is not > configurable. You have to create a new proxy type to overwrite the proxies' > standard behavior. >
I had just had that thought this morning: that in particular, only a delegating type proxy, an Interceptor proxy in [proxy] speak, would be subject to the condition James outline where an interceptor proxy and its target should *not* be considered equal. Thanks for weighing in here, Joerg... > - Jörg > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org > For additional commands, e-mail: dev-h...@commons.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org