Fix tapi feature installation
[transportpce.git] / tapi / src / main / resources / OSGI-INF / blueprint / tapi-blueprint.xml
diff --git a/tapi/src/main/resources/OSGI-INF/blueprint/tapi-blueprint.xml b/tapi/src/main/resources/OSGI-INF/blueprint/tapi-blueprint.xml
new file mode 100644 (file)
index 0000000..58d876d
--- /dev/null
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- vi: set et smarttab sw=4 tabstop=4: -->
+<!--
+Copyright © 2018 Orange 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
+
+Author: Gilles Thouenon <gilles.thouenon@orange.com>
+-->
+<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="dataBroker"
+          interface="org.opendaylight.mdsal.binding.api.DataBroker"
+          odl:type="default" />
+
+    <reference id="rpcProviderService"
+          interface="org.opendaylight.mdsal.binding.api.RpcProviderService"/>
+
+    <reference id="serviceHandlerService"
+          interface="org.opendaylight.transportpce.servicehandler.service.ServiceHandlerOperations" />
+
+    <bean id="tapiListener"
+          class="org.opendaylight.transportpce.tapi.utils.TapiListener">
+    </bean>
+
+    <bean id="tapiProvider"
+          class="org.opendaylight.transportpce.tapi.impl.TapiProvider"
+          init-method="init" destroy-method="close">
+        <argument ref="dataBroker" />
+        <argument ref="rpcProviderService" />
+        <argument ref="serviceHandlerService" />
+        <argument ref="tapiListener" />
+    </bean>
+
+</blueprint>