Move BP xml files to standard OSGI-INF/blueprint
[controller.git] / opendaylight / md-sal / sal-cluster-admin-impl / src / main / resources / OSGI-INF / blueprint / cluster-admin.xml
diff --git a/opendaylight/md-sal/sal-cluster-admin-impl/src/main/resources/OSGI-INF/blueprint/cluster-admin.xml b/opendaylight/md-sal/sal-cluster-admin-impl/src/main/resources/OSGI-INF/blueprint/cluster-admin.xml
new file mode 100644 (file)
index 0000000..258bc09
--- /dev/null
@@ -0,0 +1,24 @@
+<?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"
+           odl:use-default-for-reference-types="true">
+
+  <!-- ClusterAdminRpcService -->
+
+  <reference id="configDatastore" interface="org.opendaylight.controller.cluster.datastore.DistributedDataStoreInterface"
+      odl:type="distributed-config"/>
+
+  <reference id="operationalDatastore" interface="org.opendaylight.controller.cluster.datastore.DistributedDataStoreInterface"
+      odl:type="distributed-operational"/>
+
+  <reference id="normalizedNodeSerializer" interface="org.opendaylight.mdsal.binding.dom.codec.api.BindingNormalizedNodeSerializer"/>
+
+  <bean id="clusterAdminService" class="org.opendaylight.controller.cluster.datastore.admin.ClusterAdminRpcService">
+    <argument ref="configDatastore"/>
+    <argument ref="operationalDatastore"/>
+    <argument ref="normalizedNodeSerializer"/>
+  </bean>
+
+  <odl:rpc-implementation ref="clusterAdminService"/>
+
+</blueprint>
\ No newline at end of file