890d72bbdf45b3618ae8320d35e513cc0f35ad70
[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.controller.md.sal.binding.api.DataBroker"/>
17   <reference id="yangLibRestAppService" interface="org.opendaylight.yanglib.api.YangLibRestAppService"/>
18
19   <bean id="yangLibProvider" class="org.opendaylight.yanglib.impl.YangLibProvider"
20           init-method="init" destroy-method="close">
21     <argument ref="yanglibConfig"/>
22     <argument ref="dataBroker"/>
23     <argument>
24       <bean factory-ref="yangLibRestAppService" factory-method="getYangLibService"/>
25     </argument>
26   </bean>
27
28 </blueprint>