Fix odl-yanglib feature usage
[netconf.git] / netconf / yanglib / src / main / resources / OSGI-INF / 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" default-config-file-name="yanglib-config.xml"
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   <reference id="parserFactory" interface="org.opendaylight.yangtools.yang.parser.api.YangParserFactory" />
21
22   <bean id="yangLibProvider" class="org.opendaylight.yanglib.impl.YangLibProvider"
23           init-method="init" destroy-method="close">
24     <argument ref="yanglibConfig"/>
25     <argument ref="dataBroker"/>
26     <argument ref="parserFactory"/>
27   </bean>
28
29   <bean id="yangLibRestApp" class="org.opendaylight.yanglib.impl.YangLibRestApp">
30     <argument ref="yangLibProvider"/>
31   </bean>
32
33   <bean id="webInitializer" class="org.opendaylight.yanglib.impl.WebInitializer"
34       destroy-method="close">
35     <argument ref="webServer"/>
36     <argument ref="webContextSecurer"/>
37     <argument ref="servletSupport"/>
38     <argument ref="yangLibRestApp"/>
39   </bean>
40 </blueprint>