Convert sal-rest-docgen to OSGI DS
[netconf.git] / netconf / mdsal-netconf-notification / src / main / resources / OSGI-INF / 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     <reference id="bindingGenerator"
20                interface="org.opendaylight.mdsal.binding.runtime.api.BindingRuntimeGenerator"/>
21     <reference id="codecFactory"
22                interface="org.opendaylight.mdsal.binding.dom.codec.spi.BindingDOMCodecFactory"/>
23     <reference id="parserFactory"
24                interface="org.opendaylight.yangtools.yang.parser.api.YangParserFactory"/>
25
26     <!--This is the MD-SAL netconf server notification blueprint xml file-->
27     <bean id="transformUtil"
28           class="org.opendaylight.netconf.mdsal.notification.impl.ops.NotificationsTransformUtil">
29         <argument ref="parserFactory"/>
30         <argument ref="bindingGenerator"/>
31         <argument ref="codecFactory"/>
32     </bean>
33
34     <bean id="netconfNotificationManager"
35           class="org.opendaylight.netconf.mdsal.notification.impl.NetconfNotificationManager"
36           destroy-method="close">
37                 <argument ref="transformUtil"/>
38     </bean>
39     <service ref="netconfNotificationManager"
40              interface="org.opendaylight.netconf.notifications.NetconfNotificationRegistry"
41              odl:type="netconf-notification-manager">
42     </service>
43     <service ref="netconfNotificationManager"
44              interface="org.opendaylight.netconf.notifications.NetconfNotificationCollector"
45              odl:type="netconf-notification-manager">
46     </service>
47
48     <bean id="notificationToMdsalWriter"
49           class="org.opendaylight.netconf.mdsal.notification.impl.NotificationToMdsalWriter"
50           init-method="start"
51           destroy-method="close">
52         <argument ref="netconfNotificationManager"/>
53         <argument ref="dataBroker"/>
54     </bean>
55
56     <bean id="capabilityChangeNotificationProducer"
57           class="org.opendaylight.netconf.mdsal.notification.impl.CapabilityChangeNotificationProducer"
58           destroy-method="close">
59         <argument ref="netconfNotificationManager"/>
60         <argument ref="dataBroker"/>
61     </bean>
62
63     <bean id="yangLibraryNotificationProducer"
64           class="org.opendaylight.netconf.mdsal.notification.impl.YangLibraryNotificationProducer"
65           destroy-method="close">
66         <argument ref="netconfNotificationManager"/>
67         <argument ref="dataBroker"/>
68     </bean>
69
70     <bean id="yangLibraryNotificationProducerRFC8525"
71           class="org.opendaylight.netconf.mdsal.notification.impl.YangLibraryNotificationProducerRFC8525"
72           destroy-method="close">
73         <argument ref="netconfNotificationManager"/>
74         <argument ref="dataBroker"/>
75     </bean>
76
77     <bean id="sessionNotificationProducer"
78           class="org.opendaylight.netconf.mdsal.notification.impl.SessionNotificationProducer"
79           destroy-method="close">
80         <argument ref="netconfNotificationManager"/>
81         <argument ref="dataBroker"/>
82     </bean>
83
84     <bean id="netconfNotificationOperationServiceFactory"
85           class="org.opendaylight.netconf.mdsal.notification.impl.NetconfNotificationOperationServiceFactory"
86           destroy-method="close">
87         <argument ref="netconfNotificationManager"/>
88         <argument ref="netconfOperationServiceFactoryListener"/>
89     </bean>
90     <service ref="netconfNotificationOperationServiceFactory"
91              interface="org.opendaylight.netconf.mapping.api.NetconfOperationServiceFactory"
92              odl:type="mdsal-netconf-notification"/>
93 </blueprint>