summaryrefslogtreecommitdiffstats
path: root/ResmanagementService/service/src/main/resources/spring/Resmanagement/services.xml
diff options
context:
space:
mode:
Diffstat (limited to 'ResmanagementService/service/src/main/resources/spring/Resmanagement/services.xml')
-rw-r--r--ResmanagementService/service/src/main/resources/spring/Resmanagement/services.xml331
1 files changed, 331 insertions, 0 deletions
diff --git a/ResmanagementService/service/src/main/resources/spring/Resmanagement/services.xml b/ResmanagementService/service/src/main/resources/spring/Resmanagement/services.xml
new file mode 100644
index 0000000..a24efd5
--- /dev/null
+++ b/ResmanagementService/service/src/main/resources/spring/Resmanagement/services.xml
@@ -0,0 +1,331 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright 2016, Huawei Technologies Co., Ltd.
+
+ Licensed 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:aop="http://www.springframework.org/schema/aop"
+ xmlns:osgi="http://www.springframework.org/schema/osgi" xmlns:osgix="http://www.springframework.org/schema/osgi-compendium"
+ xmlns:ctx="http://www.springframework.org/schema/context"
+ xmlns:jaxrs="http://cxf.apache.org/jaxrs"
+ xmlns:http-conf="http://cxf.apache.org/transports/http/configuration"
+ xsi:schemaLocation="
+ http://www.springframework.org/schema/beans
+ http://www.springframework.org/schema/beans/spring-beans.xsd
+ http://www.springframework.org/schema/osgi
+ http://www.springframework.org/schema/osgi/spring-osgi.xsd
+ http://www.springframework.org/schema/context
+ http://www.springframework.org/schema/context/spring-context.xsd
+ http://www.springframework.org/schema/osgi-compendium
+ http://www.springframework.org/schema/osgi-compendium/spring-osgi-compendium.xsd
+ http://cxf.apache.org/jaxrs
+ http://cxf.apache.org/schemas/jaxrs.xsd
+ http://cxf.apache.org/transports/http/configuration
+ http://cxf.apache.org/schemas/configuration/http-conf.xsd
+ http://www.springframework.org/schema/aop
+ http://www.springframework.org/schema/aop/spring-aop-3.0.xsd">
+
+ <!-- these are included in the dependency jar -->
+ <import resource="classpath:META-INF/cxf/cxf.xml" />
+ <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
+
+ <bean id="jsonProvider" class="org.codehaus.jackson.jaxrs.JacksonJsonProvider" />
+
+ <bean id="source" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
+ <property name="driverClassName" value="com.mysql.jdbc.Driver"/>
+ <property name="url" value="jdbc:mysql://127.0.0.1:3306/resmanagementdb"/>
+ <property name="username" value="root"/>
+ <property name="password" value="rootpass"/>
+ </bean>
+
+ <bean id="sessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean">
+ <property name="dataSource" ref="source" />
+ <property name="mapperLocations" value="classpath*:mybatis/mysql/*.xml" />
+ <!-- <property name="configLocation" value="classpath:mybatis-config.xml" /> -->
+ </bean>
+
+ <bean id="session" class="org.mybatis.spring.SqlSessionTemplate">
+ <constructor-arg index="0" ref="sessionFactory" />
+ </bean>
+
+ <bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
+ <property name="dataSource" ref="source" />
+ </bean>
+
+ <!--location -->
+ <bean id="locationDao"
+ class="org.openo.nfvo.resmanagement.service.dao.impl.LocationDaoImpl">
+ <property name="session" ref="session"></property>
+ </bean>
+
+ <bean id="locationBusiness"
+ class="org.openo.nfvo.resmanagement.service.business.impl.LocationBusinessImpl">
+ <property name="locationDao" ref="locationDao"></property>
+ </bean>
+
+ <bean id="location"
+ class="org.openo.nfvo.resmanagement.service.base.openstack.impl.LocationImpl">
+ <property name="locationBusiness" ref="locationBusiness"></property>
+ </bean>
+
+ <bean id="locationRoa" class="org.openo.nfvo.resmanagement.service.rest.LocationRoa">
+ <property name="location" ref="location"></property>
+ <property name="sites" ref="sites"></property>
+ </bean>
+
+ <!--port -->
+ <bean id="portDao"
+ class="org.openo.nfvo.resmanagement.service.dao.impl.PortDaoImpl">
+ <property name="session" ref="session"></property>
+ </bean>
+
+ <bean id="portBusiness"
+ class="org.openo.nfvo.resmanagement.service.business.impl.PortBusinessImpl">
+ <property name="portDao" ref="portDao"></property>
+ </bean>
+
+ <bean id="port"
+ class="org.openo.nfvo.resmanagement.service.base.openstack.impl.PortImpl">
+ <property name="portBusiness" ref="portBusiness"></property>
+ </bean>
+
+ <bean id="portRoa" class="org.openo.nfvo.resmanagement.service.rest.PortRoa">
+ <property name="port" ref="port"></property>
+ </bean>
+
+ <!--host -->
+ <bean id="hostDao"
+ class="org.openo.nfvo.resmanagement.service.dao.impl.HostDaoImpl">
+ <property name="session" ref="session"></property>
+ </bean>
+
+ <bean id="hostBusiness"
+ class="org.openo.nfvo.resmanagement.service.business.impl.HostBusinessImpl">
+ <property name="hostDao" ref="hostDao"></property>
+ </bean>
+
+ <bean id="host"
+ class="org.openo.nfvo.resmanagement.service.base.openstack.impl.HostImpl">
+ <property name="hostBusiness" ref="hostBusiness"></property>
+ </bean>
+
+ <bean id="hostRoa" class="org.openo.nfvo.resmanagement.service.rest.HostRoa">
+ <property name="host" ref="host"></property>
+ </bean>
+
+ <!--network -->
+ <bean id="networkDao"
+ class="org.openo.nfvo.resmanagement.service.dao.impl.NetworkDaoImpl">
+ <property name="session" ref="session"></property>
+ </bean>
+
+ <bean id="networkBusiness"
+ class="org.openo.nfvo.resmanagement.service.business.impl.NetworkBusinessImpl">
+ <property name="networkDao" ref="networkDao"></property>
+ </bean>
+
+ <bean id="network"
+ class="org.openo.nfvo.resmanagement.service.base.openstack.impl.NetworkImpl">
+ <property name="networkBusiness" ref="networkBusiness"></property>
+ </bean>
+
+ <bean id="networkRoa" class="org.openo.nfvo.resmanagement.service.rest.NetworkRoa">
+ <property name="network" ref="network"></property>
+ </bean>
+
+ <!--sites -->
+ <bean id="sitesDao"
+ class="org.openo.nfvo.resmanagement.service.dao.impl.SitesDaoImpl">
+ <property name="session" ref="session"></property>
+ </bean>
+
+ <bean id="sitesBusiness"
+ class="org.openo.nfvo.resmanagement.service.business.impl.SitesBusinessImpl">
+ <property name="sitesDao" ref="sitesDao"></property>
+ </bean>
+
+ <bean id="sites"
+ class="org.openo.nfvo.resmanagement.service.base.openstack.impl.SitesImpl">
+ <property name="sitesBusiness" ref="sitesBusiness"></property>
+ <property name="limitsBusiness" ref="limitsBusiness"></property>
+ <property name="resOperateService" ref="resOperateService"></property>
+ </bean>
+
+ <bean id="sitesRoa" class="org.openo.nfvo.resmanagement.service.rest.SitesRoa">
+ <property name="sites" ref="sites"></property>
+ </bean>
+
+ <!--vim -->
+ <bean id="vimDao"
+ class="org.openo.nfvo.resmanagement.service.dao.impl.VimDaoImpl">
+ <property name="session" ref="session"></property>
+ </bean>
+
+ <bean id="vimBusiness"
+ class="org.openo.nfvo.resmanagement.service.business.impl.VimBusinessImpl">
+ <property name="vimDao" ref="vimDao"></property>
+ </bean>
+
+ <bean id="vim"
+ class="org.openo.nfvo.resmanagement.service.base.openstack.impl.VimImpl">
+ <property name="vimBusiness" ref="vimBusiness"></property>
+ </bean>
+
+ <!-- limits -->
+ <bean id="limitsBusiness"
+ class="org.openo.nfvo.resmanagement.service.business.impl.LimitsBusinessImpl">
+ </bean>
+
+ <bean id="limitsRoa" class="org.openo.nfvo.resmanagement.service.rest.LimitsRoa">
+ <property name="limitsBusiness" ref="limitsBusiness"></property>
+ </bean>
+
+ <!-- vl -->
+ <bean id="virtualLinkDao"
+ class="org.openo.nfvo.resmanagement.service.dao.impl.VirtualLinkDaoImpl">
+ <property name="session" ref="session"></property>
+ </bean>
+
+ <bean id="virtualLink"
+ class="org.openo.nfvo.resmanagement.service.group.impl.VirtualLinkServiceImpl">
+ <property name="virtualLinkDao" ref="virtualLinkDao"></property>
+ </bean>
+
+ <bean id="virtualLinkRoa" class="org.openo.nfvo.resmanagement.service.rest.VirtualLinkRoa">
+ <property name="virtualLink" ref="virtualLink"></property>
+ </bean>
+
+ <!-- vnf -->
+ <bean id="vnfDao"
+ class="org.openo.nfvo.resmanagement.service.dao.impl.VnfDaoImpl">
+ <property name="session" ref="session"></property>
+ </bean>
+
+ <bean id="vnfService"
+ class="org.openo.nfvo.resmanagement.service.group.impl.VnfServiceImpl">
+ <property name="vnfDao" ref="vnfDao"></property>
+ <property name="vnfInfoService" ref="vnfInfoService"></property>
+ </bean>
+
+ <bean id="vnfRoa" class="org.openo.nfvo.resmanagement.service.rest.VnfRoa">
+ <property name="vnfService" ref="vnfService"></property>
+ </bean>
+
+ <!-- vm -->
+ <bean id="vmDao" class="org.openo.nfvo.resmanagement.service.dao.impl.VmDaoImpl">
+ <property name="session" ref="session"></property>
+ </bean>
+
+ <bean id="vmService" class="org.openo.nfvo.resmanagement.service.group.impl.VmServiceImpl">
+ <property name="vmDao" ref="vmDao"></property>
+ </bean>
+
+ <bean id="vmRoa" class="org.openo.nfvo.resmanagement.service.rest.VmRoa">
+ <property name="vmService" ref="vmService"></property>
+ </bean>
+
+ <!-- vnfInfo -->
+ <bean id="vnfInfoDao"
+ class="org.openo.nfvo.resmanagement.service.dao.impl.VnfInfoDaoImpl">
+ <property name="session" ref="session"></property>
+ </bean>
+
+ <bean id="vnfInfoService"
+ class="org.openo.nfvo.resmanagement.service.group.impl.VnfInfoServiceImpl">
+ <property name="vnfInfoDao" ref="vnfInfoDao"></property>
+ <property name="vmService" ref="vmService"></property>
+ </bean>
+
+ <bean id="vnfInfoRoa" class="org.openo.nfvo.resmanagement.service.rest.VnfInfoRoa">
+ <property name="vnfInfoService" ref="vnfInfoService"></property>
+ </bean>
+
+ <!-- vnfstatus -->
+ <bean id="vnfStatusDao" class="org.openo.nfvo.resmanagement.service.dao.impl.VnfStatusDaoImpl">
+ <property name="session" ref="session"></property>
+ </bean>
+
+ <bean id="vnfStatusService" class="org.openo.nfvo.resmanagement.service.group.impl.VnfStatusServiceImpl">
+ <property name="vnfStatusDao" ref="vnfStatusDao"></property>
+ </bean>
+
+ <bean id="vnfStatusRoa" class="org.openo.nfvo.resmanagement.service.rest.VnfStatusRoa">
+ <property name="vnfStatusService" ref="vnfStatusService"></property>
+ </bean>
+
+ <!-- grantResource -->
+ <bean id="grantResService" class="org.openo.nfvo.resmanagement.service.group.impl.GrantResServiceImpl">
+ <property name="sites" ref="sites"></property>
+ </bean>
+
+ <bean id="grantResourseRoa" class="org.openo.nfvo.resmanagement.service.rest.GrantResourseRoa">
+ <property name="grantResService" ref="grantResService"></property>
+ </bean>
+
+ <!--group_resoperate -->
+ <bean id="resOperateService"
+ class="org.openo.nfvo.resmanagement.service.group.impl.ResOperateServiceImpl">
+ <property name="host" ref="host"></property>
+ <property name="port" ref="port"></property>
+ <property name="sites" ref="sites"></property>
+ <property name="network" ref="network"></property>
+ <property name="vim" ref="vim"></property>
+ <property name="iResourceUpdateServiceImpl" ref="iResourceUpdateServiceImpl"></property>
+ <property name="iResourceAddServiceImpl" ref="iResourceAddServiceImpl"></property>
+ <property name="iResourceDelServiceImpl" ref="iResourceDelServiceImpl"></property>
+ </bean>
+
+ <bean id="iResourceUpdateServiceImpl"
+ class="org.openo.nfvo.resmanagement.service.group.impl.IResourceUpdateServiceImpl">
+ </bean>
+
+ <bean id="iResourceAddServiceImpl"
+ class="org.openo.nfvo.resmanagement.service.group.impl.IResourceAddServiceImpl">
+ </bean>
+
+ <bean id="iResourceDelServiceImpl"
+ class="org.openo.nfvo.resmanagement.service.group.impl.IResourceDelServiceImpl">
+ </bean>
+
+ <bean id="resOperateRoa" class="org.openo.nfvo.resmanagement.service.rest.ResOperateRoa">
+ <property name="resOperateService" ref="resOperateService"></property>
+ </bean>
+
+ <bean id="SwaggerRoa" class="org.openo.nfvo.resmanagement.service.rest.SwaggerRoa"></bean>
+
+ <jaxrs:server id="restContainer" address="/">
+ <jaxrs:serviceBeans>
+ <ref bean="locationRoa" />
+ <ref bean="portRoa" />
+ <ref bean="hostRoa" />
+ <ref bean="networkRoa" />
+ <ref bean="sitesRoa" />
+ <ref bean="resOperateRoa" />
+ <ref bean="limitsRoa" />
+ <ref bean="virtualLinkRoa" />
+ <ref bean="vnfRoa" />
+ <ref bean="vmRoa" />
+ <ref bean="vnfInfoRoa" />
+ <ref bean="vnfStatusRoa" />
+ <ref bean="grantResourseRoa" />
+ <ref bean="SwaggerRoa" />
+ </jaxrs:serviceBeans>
+ <jaxrs:providers>
+ <ref bean="jsonProvider" />
+ <bean class="org.openo.nfvo.resmanagement.service.rest.exceptionmapper.ServiceExceptionMapper" />
+ <bean class="org.openo.nfvo.resmanagement.service.rest.exceptionmapper.GenericExceptionMapper" />
+ </jaxrs:providers>
+ </jaxrs:server>
+</beans>