Move BP xml files to standard OSGI-INF/blueprint
[netconf.git] / restconf / sal-rest-docgen / src / main / resources / OSGI-INF / blueprint / blueprint.xml
diff --git a/restconf/sal-rest-docgen/src/main/resources/OSGI-INF/blueprint/blueprint.xml b/restconf/sal-rest-docgen/src/main/resources/OSGI-INF/blueprint/blueprint.xml
new file mode 100644 (file)
index 0000000..b9eed4a
--- /dev/null
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- vi: set et smarttab sw=4 tabstop=4: -->
+<!--
+Copyright © 2017 Inocybe Technologies and others. All rights reserved.
+
+This program and the accompanying materials are made available under the
+terms of the Eclipse Public License v1.0 which accompanies this distribution,
+and is available at http://www.eclipse.org/legal/epl-v10.html
+-->
+<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
+           xmlns:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0"
+           odl:use-default-for-reference-types="true">
+
+    <reference id="schemaService" interface="org.opendaylight.mdsal.dom.api.DOMSchemaService"/>
+    <reference id="domMountPointService" interface="org.opendaylight.mdsal.dom.api.DOMMountPointService"/>
+    <reference id="webServer" interface="org.opendaylight.aaa.web.WebServer"/>
+    <reference id="webContextSecurer" interface="org.opendaylight.aaa.web.WebContextSecurer"/>
+    <reference id="servletSupport" interface="org.opendaylight.aaa.web.servlet.ServletSupport" />
+
+    <bean id="mountPointDraft02" class="org.opendaylight.netconf.sal.rest.doc.impl.MountPointSwaggerGeneratorDraft02"
+            destroy-method="close">
+        <argument ref="schemaService" />
+        <argument ref="domMountPointService" />
+    </bean>
+
+    <bean id="mountPointRFC8040" class="org.opendaylight.netconf.sal.rest.doc.impl.MountPointSwaggerGeneratorRFC8040"
+            destroy-method="close">
+        <argument ref="schemaService" />
+        <argument ref="domMountPointService" />
+    </bean>
+
+    <bean id="apiDocDraftO2" class="org.opendaylight.netconf.sal.rest.doc.impl.ApiDocGeneratorDraftO2">
+        <argument ref="schemaService" />
+    </bean>
+
+    <bean id="apiDocRFC8040" class="org.opendaylight.netconf.sal.rest.doc.impl.ApiDocGeneratorRFC8040">
+        <argument ref="schemaService" />
+    </bean>
+
+    <bean id="apiDocService" class="org.opendaylight.netconf.sal.rest.doc.impl.ApiDocServiceImpl">
+        <argument ref="mountPointDraft02" />
+        <argument ref="mountPointRFC8040" />
+        <argument ref="apiDocDraftO2" />
+        <argument ref="apiDocRFC8040" />
+    </bean>
+
+    <bean id="apiDocApplication" class="org.opendaylight.netconf.sal.rest.doc.jaxrs.ApiDocApplication">
+        <argument ref="apiDocService" />
+    </bean>
+
+    <bean id="webInitializer" class="org.opendaylight.netconf.sal.rest.doc.jaxrs.WebInitializer"
+            destroy-method="close">
+        <argument ref="webServer"/>
+        <argument ref="webContextSecurer"/>
+        <argument ref="servletSupport"/>
+        <argument ref="apiDocApplication"/>
+  </bean>
+</blueprint>