|
From: Juergen H. <ju...@in...> - 2005-04-11 22:20:13
|
Good idea! I've just added such an explicit "targetName" property, as alternative to specifying the target name at the end of the "interceptorNames" array. Juergen -----Original Message----- From: spr...@li... [mailto:spr...@li...]On Behalf Of Colin Sampaleanu Sent: Monday, April 11, 2005 11:12 PM To: spr...@li... Subject: [Springframework-developer] exposing targetName property on ProxyFactoryBean I think it'd be worth it to expose a targetName property (obviously the existing targetName field and related code would have to be coordinated) or alternate a targetBeanName property, on the proxyFactoryBean. Right now if you want to proxy a prototype bean, an easy way to do it is to have it as the last bean name in the interceptorNames list. However, this mechanism is not convenient to use when you want to have a base abstract template (parent) proxy definition, and override it with a small child definition for each real proxy, as you'd have to set the interceptorNames property in each child. The alternative is to use a nested PrototypeTargetSource bean definition, and set it via the targetSource property of the proxy factory bean. This works fine, but adds 3 extra lines of config. Exposing a targetName or targetBeanName property which amounts to the same thing would be quite a lot less verbose when people have many prototype proxies... Colin -- Colin Sampaleanu Interface21 Principal Consultant Spring Training, Consulting and Support - "From the Source" http://www.springframework.com ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Springframework-developer mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-developer |