Add blueprint XML for mdsal-singleton-dom-impl 56/42056/5
authorTom Pantelis <tpanteli@brocade.com>
Tue, 19 Jul 2016 01:28:05 +0000 (21:28 -0400)
committerRobert Varga <nite@hq.sk>
Tue, 19 Jul 2016 18:10:00 +0000 (18:10 +0000)
Added a blueprint XML file to instantiate and advertise the
DOMClusterSingletonServiceProviderImpl instance.

Change-Id: I768aae041b5a33d37c21505c7debab77e7dd9c1a
Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
singleton-service/mdsal-singleton-dom-impl/pom.xml
singleton-service/mdsal-singleton-dom-impl/src/main/resources/org/opendaylight/blueprint/dom-singleton.xml [new file with mode: 0644]

index 97c7cb8cc1a0bfa49cdb8fd8b94ea5bacf531629..8185a918633c7db296bcd17ac584c6406c65dd46 100644 (file)
         <groupId>org.apache.felix</groupId>
         <artifactId>maven-bundle-plugin</artifactId>
         <extensions>true</extensions>
-          <configuration>
-            <instructions>
-              <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
-              <Export-Package>
-                org.opendaylight.mdsal.singleton.dom.impl
-              </Export-Package>
-          </instructions>
-        </configuration>
       </plugin>
     </plugins>
   </build>
diff --git a/singleton-service/mdsal-singleton-dom-impl/src/main/resources/org/opendaylight/blueprint/dom-singleton.xml b/singleton-service/mdsal-singleton-dom-impl/src/main/resources/org/opendaylight/blueprint/dom-singleton.xml
new file mode 100644 (file)
index 0000000..8f0770d
--- /dev/null
@@ -0,0 +1,16 @@
+<?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">
+
+  <!-- DOMClusterSingletonServiceProvider -->
+
+  <reference id="domEntityOwnershipService" interface="org.opendaylight.mdsal.eos.dom.api.DOMEntityOwnershipService"/>
+
+  <bean id="domClusterSingletonService" class="org.opendaylight.mdsal.singleton.dom.impl.DOMClusterSingletonServiceProviderImpl"
+          init-method="initializeProvider" destroy-method="close">
+    <argument ref="domEntityOwnershipService"/>
+  </bean>
+
+  <service ref="domClusterSingletonService" interface="org.opendaylight.mdsal.singleton.dom.api.DOMClusterSingletonServiceProvider"
+        odl:type="default"/>
+</blueprint>