All,
I have fixed SPR-391 which prevented the use of lookup methods with
CGLIB proxies. The issue arose because CGLIB will not create a proxy
class when the superclass is another proxy class. Cglib2AopProxy is now
aware of this and will detect when the resource being proxied is already
a proxy and use the proxy superclass instead of the proxy class. This
doesn't affect any of the existing CGLIB proxy functionality.
I will hopefully finish up on SPR-285 today as well. For this I need to
modify ProxyFactory and ProxyFactoryBean to allow the user to specify
the constructor args and constructor arg types to pass to CGLIB. I think
the best way to do this is to expose some simple properties so that
these values can be specified statically but also to introduce the
ConstructorArgResolver interface so args can be resolved dynamically.
Thoughts?
Rob
|