Move BP xml files to standard OSGI-INF/blueprint
[controller.git] / opendaylight / md-sal / mdsal-trace / binding-impl / src / main / resources / OSGI-INF / blueprint / impl-blueprint.xml
diff --git a/opendaylight/md-sal/mdsal-trace/binding-impl/src/main/resources/OSGI-INF/blueprint/impl-blueprint.xml b/opendaylight/md-sal/mdsal-trace/binding-impl/src/main/resources/OSGI-INF/blueprint/impl-blueprint.xml
new file mode 100644 (file)
index 0000000..30b8a99
--- /dev/null
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- vi: set et smarttab sw=4 tabstop=4: -->
+<!--
+Copyright © 2016 Red Hat 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:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0"
+  xmlns:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0"
+  odl:use-default-for-reference-types="true">
+
+  <reference id="adapterFactory" interface="org.opendaylight.controller.md.sal.binding.spi.AdapterFactory"/>
+
+  <reference id="tracingDefaultDOMBroker"
+      interface="org.opendaylight.controller.md.sal.trace.api.TracingDOMDataBroker"
+      odl:type="default" />
+
+  <reference id="tracingPingPongDOMDataBroker"
+      interface="org.opendaylight.controller.md.sal.trace.api.TracingDOMDataBroker"
+      odl:type="pingpong"/>
+
+  <bean id="wiring" class="org.opendaylight.controller.md.sal.trace.binding.impl.TracingBindingBrokerWiring">
+    <argument ref="tracingDefaultDOMBroker"/>
+    <argument ref="tracingPingPongDOMDataBroker"/>
+    <argument ref="adapterFactory"/>
+  </bean>
+
+  <bean id="tracingBindingDataBroker" factory-ref="wiring" factory-method="getTracingDataBroker" />
+  <service id="tracingBindingDataBrokerSvc" ref="tracingBindingDataBroker"
+           interface="org.opendaylight.controller.md.sal.binding.api.DataBroker"
+           odl:type="default" ranking="10"/>
+
+  <bean id="bindingTracingPingPongDataBroker" factory-ref="wiring" factory-method="getTracingPingPongDataBroker" />
+  <service ref="bindingTracingPingPongDataBroker"
+           interface="org.opendaylight.controller.md.sal.binding.api.DataBroker"
+           odl:type="pingpong" ranking="10"/>
+</blueprint>