|
| 1 | +<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor |
| 2 | + license agreements. See the NOTICE file distributed with this work for additional |
| 3 | + information regarding copyright ownership. The ASF licenses this file to |
| 4 | + you under the Apache License, Version 2.0 (the "License"); you may not use |
| 5 | + this file except in compliance with the License. You may obtain a copy of |
| 6 | + the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required |
| 7 | + by applicable law or agreed to in writing, software distributed under the |
| 8 | + License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS |
| 9 | + OF ANY KIND, either express or implied. See the License for the specific |
| 10 | + language governing permissions and limitations under the License. --> |
| 11 | +<beans xmlns="http://www.springframework.org/schema/beans" |
| 12 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" |
| 13 | + xmlns:tx="http://www.springframework.org/schema/tx" xmlns:aop="http://www.springframework.org/schema/aop" |
| 14 | + xsi:schemaLocation="http://www.springframework.org/schema/beans |
| 15 | + http://www.springframework.org/schema/beans/spring-beans-3.0.xsd |
| 16 | + http://www.springframework.org/schema/tx |
| 17 | + http://www.springframework.org/schema/tx/spring-tx-3.0.xsd |
| 18 | + http://www.springframework.org/schema/aop |
| 19 | + http://www.springframework.org/schema/aop/spring-aop-3.0.xsd |
| 20 | + http://www.springframework.org/schema/context |
| 21 | + http://www.springframework.org/schema/context/spring-context-3.0.xsd"> |
| 22 | + |
| 23 | + <context:annotation-config /> |
| 24 | + |
| 25 | + <!-- @DB support --> |
| 26 | + <aop:config proxy-target-class="true"> |
| 27 | + <aop:aspect id="dbContextBuilder" ref="transactionContextBuilder"> |
| 28 | + <aop:pointcut id="captureAnyMethod" expression="execution(* *(..))" /> |
| 29 | + |
| 30 | + <aop:around pointcut-ref="captureAnyMethod" method="AroundAnyMethod" /> |
| 31 | + </aop:aspect> |
| 32 | + |
| 33 | + </aop:config> |
| 34 | + |
| 35 | + <bean id="transactionContextBuilder" class="com.cloud.utils.db.TransactionContextBuilder" /> |
| 36 | + <bean id="componentContext" class="com.cloud.utils.component.ComponentContext"/> |
| 37 | + <bean id="TestConfiguration" |
| 38 | + class="com.cloud.network.security.SecurityGroupManagerTestConfiguration" /> |
| 39 | + <bean class="org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor"> |
| 40 | + <property name="requiredParameterValue" value="false" /> |
| 41 | + </bean> |
| 42 | +</beans> |
0 commit comments