PDA

View Full Version : Adding Introductions when AutoProxying


Ross Beehler
07-11-2007, 05:27 AM
Anyone know how to simply add Introductions when utilizing the "autoproxy" facility? I see that AbstractAutoProxyCreator assumes all configured InterceptorNames translate to non-Introduction Advisors (since it passes them to proxyFactory.AddAdvisor in PostProcessAfterInitialization).

Note that I could handle this somewhat easily by overriding one of the existing autoproxy class's CustomizeProxyFactory method, but it doesn't appear to be abstract/virtual as the method name and help text suggests.

Thanks,
Ross

Bruno Baia
07-26-2007, 01:21 AM
Hi,

Anyone know how to simply add Introductions when utilizing the "autoproxy" facility? I see that AbstractAutoProxyCreator assumes all configured InterceptorNames translate to non-Introduction Advisors (since it passes them to proxyFactory.AddAdvisor in PostProcessAfterInitialization).

I've commited a fix for that.
you can specify introduction names in InterceptorNames now.
Note that I could create another property named 'IntroductionNames' like in ProxyFactoryObject, but I didn't for now.


Note that I could handle this somewhat easily by overriding one of the existing autoproxy class's CustomizeProxyFactory method, but it doesn't appear to be abstract/virtual as the method name and help text suggests.

Yep, this method should be virtual and it is now :)


Related Jira Issue :
http://opensource.atlassian.com/projects/spring/browse/SPRNET-650


- Bruno