Hello, i want to create an XML extension (Spring 2.0), that will be applied inside TransactionProxyFactoryBean.
Something like previous example, or maybe the implementation of name handler must do the setTarget, but this is not a problem, the problem is that i don't know which decorator i must use,Code:<bean id="dg.dg59.archival:Service" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean"> <property name="transactionManager" ref="dg.dg59.archival:Transaction"> </property> <property name="proxyInterfaces"> <value>com.dg.dg59.archival.ArchivalService</value> </property> <property name="target"> <gf:service class="com.dg.dg59.Archival"/> </property>
orCode:BeanDefinitionDecoratorIf i use the last one the method only recieves a Node so i understand that implicitly setTarget setter is called. I think that last decorator is the best for this proxy factory bean, but in javadoc is said:Code:AbstractInterceptorDrivenBeanDefinitionDecorator
But original bean must not be wrapped into ProxyFactoryBean, because the original bean, in my case dg.dg59.archival:Service is a ProxyFactoryBean itself.This base class controls the creation of the ProxyFactoryBean bean definition and wraps the original as an inner-bean definition for the target property of ProxyFactoryBean.
Thank you very much for your help.


Reply With Quote