1 <?xml version="1.0" encoding="UTF-8"?>
3 Copyright (c) 2017 Inocybe Technologies Inc. and others. All rights reserved.
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
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>
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}"/>
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}"/>
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"/>
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"/>
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"/>
45 <bean id="jSONRestconfServiceImpl" class="org.opendaylight.netconf.sal.restconf.impl.JSONRestconfServiceImpl">
46 <argument ref="controllerContext"/>
47 <argument ref="restconfImpl"/>
49 <bean id="restconfApplication" class="org.opendaylight.netconf.sal.rest.impl.RestconfApplication">
50 <argument ref="controllerContext"/>
51 <argument ref="statisticsRestconfServiceWrapper"/>
53 <bean id="restconfImpl" class="org.opendaylight.netconf.sal.restconf.impl.RestconfImpl">
54 <argument ref="brokerFacade"/>
55 <argument ref="controllerContext"/>
57 <bean id="statisticsRestconfServiceWrapper" class="org.opendaylight.netconf.sal.restconf.impl.StatisticsRestconfServiceWrapper">
58 <argument ref="restconfImpl"/>
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"/>
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"/>