CLOUDSTACK-1818: add a missing file that is missed in previous patch
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/95011d6b Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/95011d6b Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/95011d6b Branch: refs/heads/qemu-img Commit: 95011d6bf365dcc9335fb6edf37fe43c10371f10 Parents: 8bb0990 Author: Kelven Yang <kelv...@gmail.com> Authored: Tue Mar 26 18:47:05 2013 -0700 Committer: Kelven Yang <kelv...@gmail.com> Committed: Fri Mar 29 11:12:36 2013 -0700 ---------------------------------------------------------------------- .../com/cloud/upgrade/databaseCreatorContext.xml | 52 +++++++++++++++ 1 files changed, 52 insertions(+), 0 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/95011d6b/server/resources/com/cloud/upgrade/databaseCreatorContext.xml ---------------------------------------------------------------------- diff --git a/server/resources/com/cloud/upgrade/databaseCreatorContext.xml b/server/resources/com/cloud/upgrade/databaseCreatorContext.xml new file mode 100644 index 0000000..d2ed26f --- /dev/null +++ b/server/resources/com/cloud/upgrade/databaseCreatorContext.xml @@ -0,0 +1,52 @@ +<!-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +--> +<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 /> + + <!-- + @DB support + --> + <bean id="componentContext" class="com.cloud.utils.component.ComponentContext" /> + <bean id="transactionContextBuilder" class="com.cloud.utils.db.TransactionContextBuilder" /> + <bean id="instantiatePostProcessor" class="com.cloud.utils.component.ComponentInstantiationPostProcessor"> + <property name="Interceptors"> + <list> + <ref bean="transactionContextBuilder" /> + </list> + </property> + </bean> + + <bean id="versionDaoImpl" class="com.cloud.upgrade.dao.VersionDaoImpl" /> + <bean id="databaseUpgradeChecker" class="com.cloud.upgrade.DatabaseUpgradeChecker" /> + <bean id="premiumDatabaseUpgradeChecker" class="com.cloud.upgrade.PremiumDatabaseUpgradeChecker" /> + +</beans>