Split out NetconfClientConfigurationBuilderFactory
[netconf.git] / apps / netconf-topology-singleton / src / main / resources / OSGI-INF / 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.mdsal.binding.api.DataBroker"/>
16     <reference id="rpcProvider"
17                interface="org.opendaylight.mdsal.binding.api.RpcProviderService"/>
18     <reference id="rpcRegistry"
19                interface="org.opendaylight.mdsal.dom.api.DOMRpcProviderService"/>
20     <reference id="actionRegistry"
21                interface="org.opendaylight.mdsal.dom.api.DOMActionProviderService"/>
22     <reference id="clusterSingletonService"
23                interface="org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceProvider"/>
24     <reference id="keepAliveExecutor"
25                interface="org.opendaylight.controller.config.threadpool.ScheduledThreadPool"
26                odl:type="global-netconf-ssh-scheduled-executor"/>
27     <reference id="processingExecutor"
28                interface="org.opendaylight.controller.config.threadpool.ThreadPool"
29                odl:type="global-netconf-processing-executor"/>
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     <reference id="mountPointService"
39                interface="org.opendaylight.mdsal.dom.api.DOMMountPointService"/>
40     <reference id="deviceActionFactory"
41                interface="org.opendaylight.netconf.client.mdsal.api.DeviceActionFactory"/>
42     <reference id="schemaManager"
43                interface="org.opendaylight.netconf.client.mdsal.api.SchemaResourceManager"/>
44     <reference id="baseSchemas"
45                interface="org.opendaylight.netconf.client.mdsal.api.BaseNetconfSchemas"/>
46     <reference id="builderFactory"
47                interface="org.opendaylight.netconf.topology.spi.NetconfClientConfigurationBuilderFactory"/>
48     <reference id="encryptionService"
49                interface="org.opendaylight.aaa.encrypt.AAAEncryptionService" />
50
51     <odl:clustered-app-config id="singletonConfig"
52         binding-class="org.opendaylight.yang.gen.v1.urn.opendaylight.netconf.topology.singleton.config.rev170419.Config"/>
53
54     <bean id="netconfTopologyManager"
55           class="org.opendaylight.netconf.topology.singleton.impl.NetconfTopologyManager"
56           init-method="init" destroy-method="close">
57         <argument ref="baseSchemas"/>
58         <argument ref="dataBroker"/>
59         <argument ref="rpcRegistry"/>
60         <argument ref="actionRegistry"/>
61         <argument ref="clusterSingletonService"/>
62         <argument ref="keepAliveExecutor"/>
63         <argument ref="processingExecutor"/>
64         <argument ref="actorSystemProvider"/>
65         <argument ref="eventExecutor"/>
66         <argument ref="clientDispatcherDependency"/>
67         <argument value="topology-netconf"/>
68         <argument ref="singletonConfig"/>
69         <argument ref="mountPointService"/>
70         <argument ref="encryptionService" />
71         <argument ref="rpcProvider" />
72         <argument ref="deviceActionFactory"/>
73         <argument ref="schemaManager"/>
74         <argument ref="builderFactory"/>
75     </bean>
76     <service ref="netconfTopologyManager"
77              interface="org.opendaylight.netconf.topology.singleton.api.NetconfTopologySingletonService"/>
78 </blueprint>