Merge "Bug 8197: Deregister schema sources on actor stop"
[netconf.git] / netconf / netconf-topology-singleton / src / main / resources / org / opendaylight / blueprint / netconf-topology-singleton.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
3 <!--
4 Copyright © 2016 Cisco Systems, Inc. and others. All rights reserved.
5
6 This program and the accompanying materials are made available under the
7 terms of the Eclipse Public License v1.0 which accompanies this distribution,
8 and is available at http://www.eclipse.org/legal/epl-v10.html
9 -->
10 <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
11            xmlns:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0"
12            odl:use-default-for-reference-types="true">
13
14     <reference id="dataBroker"
15                interface="org.opendaylight.controller.md.sal.binding.api.DataBroker"/>
16     <reference id="rpcRegistry"
17                interface="org.opendaylight.controller.sal.binding.api.RpcProviderRegistry"/>
18     <reference id="clusterSingletonService"
19                interface="org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceProvider"/>
20     <reference id="bindingAwareBroker"
21                interface="org.opendaylight.controller.sal.binding.api.BindingAwareBroker"/>
22     <reference id="keepAliveExecutor"
23                interface="org.opendaylight.controller.config.threadpool.ScheduledThreadPool"
24                odl:type="global-netconf-ssh-scheduled-executor"/>
25     <reference id="processingExecutor"
26                interface="org.opendaylight.controller.config.threadpool.ThreadPool"
27                odl:type="global-netconf-processing-executor"/>
28     <reference id="domBroker"
29                interface="org.opendaylight.controller.sal.core.api.Broker"/>
30     <reference id="actorSystemProvider"
31                interface="org.opendaylight.controller.cluster.ActorSystemProvider"/>
32     <reference id="eventExecutor"
33                interface="io.netty.util.concurrent.EventExecutor"
34                odl:type="global-event-executor"/>
35     <reference id="clientDispatcherDependency"
36                interface="org.opendaylight.netconf.client.NetconfClientDispatcher"
37                odl:type="netconf-client-dispatcher"/>
38     <odl:clustered-app-config
39             id="singletonConfig"
40             binding-class="org.opendaylight.yang.gen.v1.urn.opendaylight.netconf.topology.singleton.config.rev170419.Config"
41     />
42
43     <bean id="netconfTopologyManager"
44           class="org.opendaylight.netconf.topology.singleton.impl.NetconfTopologyManager"
45           init-method="init" destroy-method="close">
46         <argument ref="dataBroker"/>
47         <argument ref="rpcRegistry"/>
48         <argument ref="clusterSingletonService"/>
49         <argument ref="bindingAwareBroker"/>
50         <argument ref="keepAliveExecutor"/>
51         <argument ref="processingExecutor"/>
52         <argument ref="domBroker"/>
53         <argument ref="actorSystemProvider"/>
54         <argument ref="eventExecutor"/>
55         <argument ref="clientDispatcherDependency"/>
56         <argument value="topology-netconf"/>
57         <argument ref="singletonConfig"/>
58     </bean>
59     <service ref="netconfTopologyManager"
60              interface="org.opendaylight.netconf.topology.singleton.api.NetconfTopologySingletonService"/>
61
62 </blueprint>