Further rework of base schemas
[netconf.git] / netconf / sal-netconf-connector / src / main / resources / OSGI-INF / blueprint / sal-netconf-connector.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
3 <!--
4 Copyright © 2019 FRINX s.r.o. 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="parserFactory"
15                interface="org.opendaylight.yangtools.yang.model.parser.api.YangParserFactory"/>
16
17     <bean id="deviceActionFactory"
18           class="org.opendaylight.netconf.sal.connect.netconf.DeviceActionFactoryImpl">
19     </bean>
20
21     <service ref="deviceActionFactory"
22              interface="org.opendaylight.netconf.sal.connect.api.DeviceActionFactory"
23              odl:type="default"/>
24
25     <bean id="schemaResourceManager"
26           class="org.opendaylight.netconf.sal.connect.impl.DefaultSchemaResourceManager">
27         <argument ref="parserFactory"/>
28     </bean>
29
30     <service ref="schemaResourceManager"
31              interface="org.opendaylight.netconf.sal.connect.api.SchemaResourceManager"/>
32
33     <bean id="baseNetconfSchemas"
34           class="org.opendaylight.netconf.sal.connect.netconf.schema.mapping.DefaultBaseNetconfSchemas">
35         <argument ref="parserFactory"/>
36     </bean>
37
38     <service ref="baseNetconfSchemas"
39              interface="org.opendaylight.netconf.sal.connect.netconf.schema.mapping.BaseNetconfSchemas"/>
40 </blueprint>