b9eed4ac82871fac0d4869d8749ac554cb65ad94
[netconf.git] / restconf / sal-rest-docgen / src / main / resources / org / opendaylight / blueprint / blueprint.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
3 <!--
4 Copyright © 2017 Inocybe Technologies and others. All rights reserved.
5
6 This program and the accompanying materials are made available under the
7 terms of the Eclipse Public License v1.0 which accompanies this distribution,
8 and is available at http://www.eclipse.org/legal/epl-v10.html
9 -->
10 <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
11            xmlns:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0"
12            odl:use-default-for-reference-types="true">
13
14     <reference id="schemaService" interface="org.opendaylight.mdsal.dom.api.DOMSchemaService"/>
15     <reference id="domMountPointService" interface="org.opendaylight.mdsal.dom.api.DOMMountPointService"/>
16     <reference id="webServer" interface="org.opendaylight.aaa.web.WebServer"/>
17     <reference id="webContextSecurer" interface="org.opendaylight.aaa.web.WebContextSecurer"/>
18     <reference id="servletSupport" interface="org.opendaylight.aaa.web.servlet.ServletSupport" />
19
20     <bean id="mountPointDraft02" class="org.opendaylight.netconf.sal.rest.doc.impl.MountPointSwaggerGeneratorDraft02"
21             destroy-method="close">
22         <argument ref="schemaService" />
23         <argument ref="domMountPointService" />
24     </bean>
25
26     <bean id="mountPointRFC8040" class="org.opendaylight.netconf.sal.rest.doc.impl.MountPointSwaggerGeneratorRFC8040"
27             destroy-method="close">
28         <argument ref="schemaService" />
29         <argument ref="domMountPointService" />
30     </bean>
31
32     <bean id="apiDocDraftO2" class="org.opendaylight.netconf.sal.rest.doc.impl.ApiDocGeneratorDraftO2">
33         <argument ref="schemaService" />
34     </bean>
35
36     <bean id="apiDocRFC8040" class="org.opendaylight.netconf.sal.rest.doc.impl.ApiDocGeneratorRFC8040">
37         <argument ref="schemaService" />
38     </bean>
39
40     <bean id="apiDocService" class="org.opendaylight.netconf.sal.rest.doc.impl.ApiDocServiceImpl">
41         <argument ref="mountPointDraft02" />
42         <argument ref="mountPointRFC8040" />
43         <argument ref="apiDocDraftO2" />
44         <argument ref="apiDocRFC8040" />
45     </bean>
46
47     <bean id="apiDocApplication" class="org.opendaylight.netconf.sal.rest.doc.jaxrs.ApiDocApplication">
48         <argument ref="apiDocService" />
49     </bean>
50
51     <bean id="webInitializer" class="org.opendaylight.netconf.sal.rest.doc.jaxrs.WebInitializer"
52             destroy-method="close">
53         <argument ref="webServer"/>
54         <argument ref="webContextSecurer"/>
55         <argument ref="servletSupport"/>
56         <argument ref="apiDocApplication"/>
57   </bean>
58 </blueprint>