Further rework of base schemas
[netconf.git] / netconf / sal-netconf-connector / src / main / resources / OSGI-INF / blueprint / sal-netconf-connector.xml
index d21a6d7291edd087590ced5b0c09cf6a26bb8c9b..423664c4e1cc32f95a9098e1401f908eb643241a 100644 (file)
@@ -11,6 +11,9 @@ and is available at http://www.eclipse.org/legal/epl-v10.html
            xmlns:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0"
            odl:use-default-for-reference-types="true">
 
+    <reference id="parserFactory"
+               interface="org.opendaylight.yangtools.yang.model.parser.api.YangParserFactory"/>
+
     <bean id="deviceActionFactory"
           class="org.opendaylight.netconf.sal.connect.netconf.DeviceActionFactoryImpl">
     </bean>
@@ -21,8 +24,17 @@ and is available at http://www.eclipse.org/legal/epl-v10.html
 
     <bean id="schemaResourceManager"
           class="org.opendaylight.netconf.sal.connect.impl.DefaultSchemaResourceManager">
+        <argument ref="parserFactory"/>
     </bean>
 
     <service ref="schemaResourceManager"
              interface="org.opendaylight.netconf.sal.connect.api.SchemaResourceManager"/>
-</blueprint>
\ No newline at end of file
+
+    <bean id="baseNetconfSchemas"
+          class="org.opendaylight.netconf.sal.connect.netconf.schema.mapping.DefaultBaseNetconfSchemas">
+        <argument ref="parserFactory"/>
+    </bean>
+
+    <service ref="baseNetconfSchemas"
+             interface="org.opendaylight.netconf.sal.connect.netconf.schema.mapping.BaseNetconfSchemas"/>
+</blueprint>