Instantly share code, notes, and snippets.

anonymous /applicationContext.xml
Created Oct 28, 2011

Embed
What would you like to do?
<bean id="internalMyService" class="com.MyService"/>
<constructor-arg index="0" ref="repository" />
</bean>
<bean id="myService" class="org.springframework.aop.framework.ProxyFactoryBean">
<property name="target" ref="internalMyService"></property>
<property name="interceptorNames">
<list>
<value>transactionInterceptor</value>
<value>hibernateInterceptor</value>
</list>
</property>
</bean>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment