mirror of https://github.com/apache/cloudstack.git
31 lines
1.5 KiB
XML
31 lines
1.5 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xmlns:context="http://www.springframework.org/schema/context"
|
|
xmlns:tx="http://www.springframework.org/schema/tx"
|
|
xmlns:aop="http://www.springframework.org/schema/aop"
|
|
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
|
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
|
|
http://www.springframework.org/schema/tx
|
|
http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
|
|
http://www.springframework.org/schema/aop
|
|
http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
|
|
http://www.springframework.org/schema/context
|
|
http://www.springframework.org/schema/context/spring-context-3.0.xsd">
|
|
<context:annotation-config />
|
|
|
|
<context:component-scan base-package="org.apache.cloudstack, com.cloud" />
|
|
|
|
<aop:config proxy-target-class="true">
|
|
<aop:aspect id="dbContextBuilder" ref="transactionContextBuilder">
|
|
<aop:pointcut id="captureAnyMethod"
|
|
expression="execution(* *(..))" />
|
|
<aop:around pointcut-ref="captureAnyMethod" method="AroundAnyMethod"/>
|
|
</aop:aspect>
|
|
</aop:config>
|
|
|
|
<bean id="transactionContextBuilder" class="com.cloud.utils.db.TransactionContextBuilder" />
|
|
|
|
</beans>
|