Migrate netconf to MD-SAL APIs
[netconf.git] / netconf / yanglib / src / main / resources / org / opendaylight / blueprint / yanglib.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  Copyright (c) 2017 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   <odl:clustered-app-config id="yanglibConfig"
14       binding-class="org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.yanglib.impl.rev141210.YanglibConfig"/>
15
16   <reference id="dataBroker" interface="org.opendaylight.mdsal.binding.api.DataBroker"/>
17   <reference id="webServer" interface="org.opendaylight.aaa.web.WebServer"/>
18   <reference id="webContextSecurer" interface="org.opendaylight.aaa.web.WebContextSecurer"/>
19   <reference id="servletSupport" interface="org.opendaylight.aaa.web.servlet.ServletSupport" />
20
21   <bean id="schemaRepository" class="org.opendaylight.yangtools.yang.parser.repo.SharedSchemaRepository">
22     <argument value="yang-library"/>
23   </bean>
24
25   <bean id="yangLibService" class="org.opendaylight.yanglib.impl.YangLibServiceImpl">
26     <argument ref="schemaRepository"/>
27   </bean>
28
29   <bean id="yangLibRestApp" class="org.opendaylight.yanglib.impl.YangLibRestApp">
30     <argument ref="yangLibService"/>
31   </bean>
32
33   <bean id="yangLibProvider" class="org.opendaylight.yanglib.impl.YangLibProvider"
34           init-method="init" destroy-method="close">
35     <argument ref="yanglibConfig"/>
36     <argument ref="dataBroker"/>
37     <argument ref="schemaRepository"/>
38   </bean>
39
40   <bean id="webInitializer" class="org.opendaylight.yanglib.impl.WebInitializer"
41       destroy-method="close">
42     <argument ref="webServer"/>
43     <argument ref="webContextSecurer"/>
44     <argument ref="servletSupport"/>
45     <argument ref="yangLibRestApp"/>
46   </bean>
47 </blueprint>