c5eb61a3b8436e0924bc642f88bf3fd8624d28b6
[netconf.git] / netconf / messagebus-netconf / src / main / resources / org / opendaylight / blueprint / messagebus-netconf.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="domMountPointService"
17                interface="org.opendaylight.mdsal.dom.api.DOMMountPointService" />
18     <reference id="domNotificationPublishService"
19                interface="org.opendaylight.mdsal.dom.api.DOMNotificationPublishService" />
20     <reference id="eventSourceRegistry"
21                interface="org.opendaylight.controller.messagebus.spi.EventSourceRegistry" />
22
23     <bean id="netconfEventSourceManager"
24           class="org.opendaylight.netconf.messagebus.eventsources.netconf.NetconfEventSourceManager"
25           init-method="initialize"
26           destroy-method="close">
27         <argument ref="dataBroker" />
28         <argument ref="domNotificationPublishService" />
29         <argument ref="domMountPointService" />
30         <argument ref="eventSourceRegistry" />
31         <property name="streamMap">
32             <map>
33                 <entry key="urn:ietf:params:xml:ns:yang:smiv2" value="SNMP"/>
34                 <entry key="urn:ietf:params:xml:ns:yang:ietf-syslog-notification" value="SYSLOG"/>
35             </map>
36         </property>
37     </bean>
38
39 </blueprint>