05ae2fb635ff56caefdc75de65cd02c628046cb1
[netconf.git] / netconf / mdsal-netconf-notification / src / main / resources / org / opendaylight / blueprint / mdsal-netconf-notification.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:restart-dependents-on-updates="true">
12
13     <reference id="dataBroker"
14                interface="org.opendaylight.mdsal.binding.api.DataBroker"
15                odl:type="default"/>
16     <reference id="netconfOperationServiceFactoryListener"
17                interface="org.opendaylight.netconf.mapping.api.NetconfOperationServiceFactoryListener"
18                odl:type="mapper-aggregator-registry"/>
19
20     <!--This is the MD-SAL netconf server notification blueprint xml file-->
21
22     <bean id="netconfNotificationManager"
23           class="org.opendaylight.netconf.notifications.impl.NetconfNotificationManager"
24           destroy-method="close">
25     </bean>
26     <service ref="netconfNotificationManager"
27              interface="org.opendaylight.netconf.notifications.NetconfNotificationRegistry"
28              odl:type="netconf-notification-manager">
29     </service>
30     <service ref="netconfNotificationManager"
31              interface="org.opendaylight.netconf.notifications.NetconfNotificationCollector"
32              odl:type="netconf-notification-manager">
33     </service>
34
35     <bean id="notificationToMdsalWriter"
36           class="org.opendaylight.controller.config.yang.netconf.mdsal.notification.NotificationToMdsalWriter"
37           init-method="start"
38           destroy-method="close">
39         <argument ref="netconfNotificationManager"/>
40         <argument ref="dataBroker"/>
41     </bean>
42
43     <bean id="capabilityChangeNotificationProducer"
44           class="org.opendaylight.controller.config.yang.netconf.mdsal.notification.CapabilityChangeNotificationProducer"
45           destroy-method="close">
46         <argument ref="netconfNotificationManager"/>
47         <argument ref="dataBroker"/>
48     </bean>
49
50     <bean id="sessionNotificationProducer"
51           class="org.opendaylight.controller.config.yang.netconf.mdsal.notification.SessionNotificationProducer"
52           destroy-method="close">
53         <argument ref="netconfNotificationManager"/>
54         <argument ref="dataBroker"/>
55     </bean>
56
57     <bean id="netconfNotificationOperationServiceFactory"
58           class="org.opendaylight.netconf.mdsal.notification.NetconfNotificationOperationServiceFactory"
59           destroy-method="close">
60         <argument ref="netconfNotificationManager"/>
61         <argument ref="netconfOperationServiceFactoryListener"/>
62     </bean>
63     <service ref="netconfNotificationOperationServiceFactory"
64              interface="org.opendaylight.netconf.mapping.api.NetconfOperationServiceFactory"
65              odl:type="mdsal-netconf-notification"/>
66 </blueprint>