1 <?xml version="1.0" encoding="UTF-8"?>
3 Copyright (c) 2017 Inocybe Technologies Inc. and others. All rights reserved.
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
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">
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"/>
16 <reference id="dataBroker" interface="org.opendaylight.controller.md.sal.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" />
21 <bean id="schemaRepository" class="org.opendaylight.yangtools.yang.parser.repo.SharedSchemaRepository">
22 <argument value="yang-library"/>
25 <bean id="yangLibService" class="org.opendaylight.yanglib.impl.YangLibServiceImpl">
26 <argument ref="schemaRepository"/>
29 <bean id="yangLibRestApp" class="org.opendaylight.yanglib.impl.YangLibRestApp">
30 <argument ref="yangLibService"/>
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"/>
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"/>