destroyInstance() WebSocketServer in two tests
[netconf.git] / netconf / mdsal-netconf-monitoring / src / main / resources / OSGI-INF / blueprint / mdsal-netconf-monitoring.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  Copyright (c) 2016 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:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0"
11            odl:use-default-for-reference-types="true">
12
13     <reference id="dataBroker"
14                interface="org.opendaylight.mdsal.binding.api.DataBroker"
15                odl:type="default"/>
16     <reference id="netconfMonitoringService"
17                interface="org.opendaylight.netconf.api.monitoring.NetconfMonitoringService"
18                odl:type="netconf-server-monitoring"/>
19     <reference id="netconfOperationServiceFactoryListener"
20                interface="org.opendaylight.netconf.mapping.api.NetconfOperationServiceFactoryListener"
21                odl:type="mapper-aggregator-registry"/>
22
23     <bean id="monitoringToMdsalWriter"
24           class="org.opendaylight.controller.config.yang.netconf.mdsal.monitoring.MonitoringToMdsalWriter"
25           init-method="start"
26           destroy-method="close">
27         <argument ref="netconfMonitoringService"/>
28         <argument ref="dataBroker"/>
29     </bean>
30
31     <bean id="mdsalMonitoringMapperFactory"
32           class="org.opendaylight.controller.config.yang.netconf.mdsal.monitoring.MdsalMonitoringMapperFactory"
33           destroy-method="close">
34         <argument ref="netconfOperationServiceFactoryListener"/>
35         <argument ref="netconfMonitoringService"/>
36         <argument ref="monitoringToMdsalWriter"/>
37     </bean>
38
39 </blueprint>