Add blueprint wiring for clustering-test-app 70/36570/16
authorTom Pantelis <tpanteli@brocade.com>
Tue, 22 Mar 2016 04:22:00 +0000 (00:22 -0400)
committerTom Pantelis <tpanteli@brocade.com>
Thu, 14 Apr 2016 03:56:08 +0000 (03:56 +0000)
Change-Id: Ie644ca52e8fa6d8f07414363e5a70e3ce0bba731
Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
opendaylight/md-sal/samples/clustering-test-app/provider/src/main/resources/org/opendaylight/blueprint/cluster-test-app.xml [new file with mode: 0644]

diff --git a/opendaylight/md-sal/samples/clustering-test-app/provider/src/main/resources/org/opendaylight/blueprint/cluster-test-app.xml b/opendaylight/md-sal/samples/clustering-test-app/provider/src/main/resources/org/opendaylight/blueprint/cluster-test-app.xml
new file mode 100644 (file)
index 0000000..dfb69f0
--- /dev/null
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
+           xmlns:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0"
+           xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"
+    odl:use-default-for-reference-types="true">
+
+  <reference id="dataBroker" interface="org.opendaylight.controller.md.sal.binding.api.DataBroker"/>
+  <reference id="notificationService" interface="org.opendaylight.controller.sal.binding.api.NotificationProviderService"/>
+  <reference id="entityOwnershipService" interface="org.opendaylight.controller.md.sal.common.api.clustering.EntityOwnershipService"/>
+
+  <bean id="purchaseCarProvider" class="org.opendaylight.controller.clustering.it.provider.PurchaseCarProvider" >
+    <property name="notificationProvider" ref="notificationService"/>
+  </bean>
+
+  <odl:routed-rpc-implementation id="carPurchaseRpcReg" ref="purchaseCarProvider"/>
+
+  <bean id="peopleProvider" class="org.opendaylight.controller.clustering.it.provider.PeopleProvider" >
+    <property name="dataProvider" ref="dataBroker"/>
+    <property name="rpcRegistration" ref="carPurchaseRpcReg"/>
+  </bean>
+
+  <bean id="carProvider" class="org.opendaylight.controller.clustering.it.provider.CarProvider" >
+    <argument ref="dataBroker"/>
+    <argument ref="entityOwnershipService"/>
+  </bean>
+
+  <odl:rpc-implementation ref="carProvider"/>
+  <odl:rpc-implementation ref="peopleProvider"/>
+
+  <bean id="peopleCarListener" class="org.opendaylight.controller.clustering.it.listener.PeopleCarListener" >
+    <property name="dataProvider" ref="dataBroker"/>
+  </bean>
+
+  <odl:notification-listener ref="peopleCarListener"/>
+
+</blueprint>
\ No newline at end of file

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.