diff options
Diffstat (limited to 'servicegateway/service/src/main/resources')
3 files changed, 131 insertions, 0 deletions
diff --git a/servicegateway/service/src/main/resources/META-INF/auth.properties b/servicegateway/service/src/main/resources/META-INF/auth.properties new file mode 100644 index 00000000..121f2944 --- /dev/null +++ b/servicegateway/service/src/main/resources/META-INF/auth.properties @@ -0,0 +1,18 @@ +############################################################################### +# /* +# * Copyright (c) 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. +# */ +############################################################################### +auth=disable diff --git a/servicegateway/service/src/main/resources/service-configure.properties b/servicegateway/service/src/main/resources/service-configure.properties new file mode 100644 index 00000000..45c2564b --- /dev/null +++ b/servicegateway/service/src/main/resources/service-configure.properties @@ -0,0 +1,17 @@ +###############################################################################
+# /*
+# * Copyright (c) 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.
+# */
+###############################################################################
diff --git a/servicegateway/service/src/main/resources/spring/service.xml b/servicegateway/service/src/main/resources/spring/service.xml new file mode 100644 index 00000000..c91ed1ca --- /dev/null +++ b/servicegateway/service/src/main/resources/spring/service.xml @@ -0,0 +1,96 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- /* * Copyright (c) 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:jaxrs="http://cxf.apache.org/jaxrs" xmlns:ctx="http://www.springframework.org/schema/context" xmlns:context="http://www.springframework.org/schema/context" + xmlns:oms="http://www.huawei.com/schema/oms" + xsi:schemaLocation=" + http://www.springframework.org/schema/beans + http://www.springframework.org/schema/beans/spring-beans.xsd + http://www.springframework.org/schema/context + http://www.springframework.org/schema/context/spring-context.xsd + http://www.huawei.com/schema/oms + http://www.huawei.com/schema/oms/oms.xsd + http://cxf.apache.org/jaxrs + http://cxf.apache.org/schemas/jaxrs.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" /> + + <!-- jar rest server registration --> + <jaxrs:server id="sampleServer" address="/"> + <!-- registering beans --> + <jaxrs:serviceBeans> + <ref bean="ServicemgrRoaModuleImpl"></ref> + <ref bean="ServicePackageModuleImpl"></ref> + </jaxrs:serviceBeans> + <!-- registering providers --> + <jaxrs:providers> + <bean class="org.codehaus.jackson.jaxrs.JacksonJsonProvider" /> + </jaxrs:providers> + </jaxrs:server> + + <bean id="datasource" class="com.mchange.v2.c3p0.ComboPooledDataSource" destroy-method="close"> + <property name="driverClass" value="com.mysql.jdbc.Driver" /> + <property name="jdbcUrl" value="jdbc:mysql://localhost:3306/mybatistest" /> + <property name="user" value="root" /> + <property name="password" value="Test_12345" /> + </bean> + + <bean id="sessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean"> + <property name="dataSource" ref="datasource" /> + <property name="mapperLocations" value="classpath*:mybatis/mappers/*.xml" /> + </bean> + + <bean id="session" class="org.mybatis.spring.SqlSessionTemplate"> + <constructor-arg index="0" ref="sessionFactory" /> + </bean> + + <bean class="org.openo.gso.servicemgr.activator.Activator"></bean> + + <bean id="Activator" class="org.openo.gso.servicemgr.activator.Activator" init-method="start" destroy-method="stop"> + </bean> + + <bean id="ServicemgrRoaModuleImpl" class="org.openo.gso.servicemgr.roa.impl.ServicemgrRoaModuleImpl"> + <property name="ServiceGateway" ref="ServiceGateway"></property> + </bean> + + <bean id="ServiceGateway" class="org.openo.gso.servicemgr.service.impl.ServiceGatewayImpl"> + <property name="serviceModelDao" ref="serviceModelDao"></property> + <property name="subServiceDao" ref="subServiceDao"></property> + <property name="servicePackageDao" ref="servicePackageDao"></property> + <property name="catalogProxy" ref="catalogProxy"></property> + <property name="wsoProxy" ref="wsoProxy"></property> + </bean> + + <bean id="ServicePackageModuleImpl" class="org.openo.gso.servicemgr.roa.impl.ServicePackageModuleImpl"> + <property name="packageMgr" ref="packageMgr"></property> + </bean> + + <bean id="packageMgr" class="org.openo.gso.servicemgr.service.impl.PackageManagerImpl"> + <property name="servicePackageDao" ref="servicePackageDao"></property> + <property name="catalogProxy" ref="catalogProxy"></property> + </bean> + + <bean id="serviceModelDao" class="org.openo.gso.servicemgr.dao.impl.ServiceModelDaoImpl"> + <property name="session" ref="session" /> + </bean> + + <bean id="servicePackageDao" class="org.openo.gso.servicemgr.dao.impl.ServicePackageDaoImpl"> + <property name="session" ref="session" /> + </bean> + + <bean id="subServiceDao" class="org.openo.gso.servicemgr.dao.impl.SubServiceDaoImpl"> + <property name="session" ref="session" /> + </bean> + + <bean id="catalogProxy" class="org.openo.gso.servicemgr.restproxy.impl.CatalogProxyImpl"> + </bean> + + <bean id="wsoProxy" class="org.openo.gso.servicemgr.restproxy.impl.WsoProxyImpl"> + </bean> +</beans>
\ No newline at end of file |