RestconfDiscoveryNode Plugin implementation
[ccsdk/sli/plugins.git] / restconf-client / provider / src / main / resources / META-INF / spring / restconf-client-context.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3  * ============LICENSE_START=======================================================
4  * ONAP - CCSDK
5  * ================================================================================
6  * Copyright (C) 2018 Huawei Technologies Co., Ltd. All rights reserved.
7  * ================================================================================
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  *      http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  * ============LICENSE_END=========================================================
20   -->
21
22 <beans xmlns="http://www.springframework.org/schema/beans"
23     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
24     xsi:schemaLocation="http://www.springframework.org/schema/beans
25         http://www.springframework.org/schema/beans/spring-beans.xsd">
26
27     <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
28             <property name="locations">
29             <list>
30                 <value>file:${SDNC_CONFIG_DIR}/ueb.properties</value>
31                 <value>file:${SDNC_CONFIG_DIR}/dme2.properties</value>
32             </list>
33         </property>
34         <property name="ignoreResourceNotFound" value="true" />
35         <property name="ignoreUnresolvablePlaceholders" value="true" />
36     </bean>
37
38     <!-- context:property-placeholder location="file:${SDNC_CONFIG_DIR}/ueb.properties" /-->
39
40     <bean id="restconfapiCallNode" class="org.onap.ccsdk.sli.plugins.restconfapicall.RestconfapiCallNode">
41         <property name="uebServers" value="${servers}" />
42     </bean>
43
44     <bean id="restconfDiscoveryNode" class="org.onap.ccsdk.sli.plugins.restconfdiscovery.RestconfDiscoveryNode">
45         <property name="restconfapiCallNode" ref="restconfapiCallNode" />
46     </bean>
47
48 </beans>