ab235e7c303b8c6986c1312c906f0ae013766b63
[netconf.git] / restconf / restconf-nb-bierman02 / src / main / resources / OSGI-INF / blueprint / restconf-config.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  Copyright (c) 2017 Inocybe Technologies Inc. and others.  All rights reserved.
4
5  This program and the accompanying materials are made available under the
6  terms of the Eclipse Public License v1.0 which accompanies this distribution,
7  and is available at http://www.eclipse.org/legal/epl-v10.html
8 -->
9 <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
10            xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0">
11   <!-- Restconf providers -->
12   <cm:property-placeholder persistent-id="org.opendaylight.restconf" update-strategy="reload">
13     <cm:default-properties>
14       <cm:property name="websocket-address" value="0.0.0.0"/>
15       <cm:property name="websocket-port" value="8185"/>
16     </cm:default-properties>
17   </cm:property-placeholder>
18
19   <bean id="webSocketPort" class="org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.PortNumber" factory-method="getDefaultInstance">
20     <argument value="${websocket-port}"/>
21   </bean>
22
23   <bean id="webSocketAddress" class="org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress">
24     <argument value="${websocket-address}"/>
25   </bean>
26
27   <bean id="restconfProviderDraft02" class="org.opendaylight.netconf.sal.restconf.impl.RestconfProviderImpl"
28           init-method="start" destroy-method="close">
29     <argument ref="statisticsRestconfServiceWrapper"/>
30     <argument ref="webSocketAddress"/>
31     <argument ref="webSocketPort"/>
32   </bean>
33
34   <bean id="brokerFacade" class="org.opendaylight.netconf.sal.restconf.impl.BrokerFacade" destroy-method="close">
35     <argument ref="dOMRpcService"/>
36     <argument ref="dOMDataBroker"/>
37     <argument ref="dOMNotificationService"/>
38     <argument ref="controllerContext"/>
39   </bean>
40   <bean id="controllerContext" class="org.opendaylight.netconf.sal.restconf.impl.ControllerContext" destroy-method="close">
41     <argument ref="dOMSchemaService"/>
42     <argument ref="dOMMountPointService"/>
43     <argument ref="dOMSchemaService"/>
44   </bean>
45   <bean id="jSONRestconfServiceImpl" class="org.opendaylight.netconf.sal.restconf.impl.JSONRestconfServiceImpl">
46     <argument ref="controllerContext"/>
47     <argument ref="restconfImpl"/>
48   </bean>
49   <bean id="restconfApplication" class="org.opendaylight.netconf.sal.rest.impl.RestconfApplication">
50     <argument ref="controllerContext"/>
51     <argument ref="statisticsRestconfServiceWrapper"/>
52   </bean>
53   <bean id="restconfImpl" class="org.opendaylight.netconf.sal.restconf.impl.RestconfImpl">
54     <argument ref="brokerFacade"/>
55     <argument ref="controllerContext"/>
56   </bean>
57   <bean id="statisticsRestconfServiceWrapper" class="org.opendaylight.netconf.sal.restconf.impl.StatisticsRestconfServiceWrapper">
58     <argument ref="restconfImpl"/>
59   </bean>
60   <bean id="webInitializer" class="org.opendaylight.netconf.sal.restconf.web.WebInitializer" destroy-method="close">
61     <argument ref="webServer"/>
62     <argument ref="webContextSecurer"/>
63     <argument ref="servletSupport"/>
64     <argument ref="restconfApplication"/>
65     <argument ref="customFilterAdapterConfiguration"/>
66   </bean>
67
68   <reference id="customFilterAdapterConfiguration" interface="org.opendaylight.aaa.filterchain.configuration.CustomFilterAdapterConfiguration"/>
69   <reference id="webContextSecurer" interface="org.opendaylight.aaa.web.WebContextSecurer"/>
70   <reference id="webServer" interface="org.opendaylight.aaa.web.WebServer"/>
71   <reference id="servletSupport" interface="org.opendaylight.aaa.web.servlet.ServletSupport"/>
72   <reference id="dOMDataBroker" interface="org.opendaylight.mdsal.dom.api.DOMDataBroker"/>
73   <reference id="dOMMountPointService" interface="org.opendaylight.mdsal.dom.api.DOMMountPointService"/>
74   <reference id="dOMNotificationService" interface="org.opendaylight.mdsal.dom.api.DOMNotificationService"/>
75   <reference id="dOMRpcService" interface="org.opendaylight.mdsal.dom.api.DOMRpcService"/>
76   <reference id="dOMSchemaService" interface="org.opendaylight.mdsal.dom.api.DOMSchemaService"/>
77   <service ref="jSONRestconfServiceImpl" interface="org.opendaylight.netconf.sal.restconf.api.JSONRestconfService"/>
78 </blueprint>