]> git.argeo.org Git - lgpl/argeo-commons.git/blobdiff - org.argeo.node.repo.jackrabbit/META-INF/spring/noderepo-osgi.xml
Move to the root the bundles which will be part of v1.4 and v2.2
[lgpl/argeo-commons.git] / org.argeo.node.repo.jackrabbit / META-INF / spring / noderepo-osgi.xml
diff --git a/org.argeo.node.repo.jackrabbit/META-INF/spring/noderepo-osgi.xml b/org.argeo.node.repo.jackrabbit/META-INF/spring/noderepo-osgi.xml
new file mode 100644 (file)
index 0000000..957dda1
--- /dev/null
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<beans:beans xmlns="http://www.springframework.org/schema/osgi"\r
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:beans="http://www.springframework.org/schema/beans"\r
+       xmlns:util="http://www.springframework.org/schema/util"\r
+       xsi:schemaLocation="http://www.springframework.org/schema/osgi  \r
+       http://www.springframework.org/schema/osgi/spring-osgi-1.1.xsd\r
+       http://www.springframework.org/schema/beans   \r
+       http://www.springframework.org/schema/beans/spring-beans-2.5.xsd\r
+       http://www.springframework.org/schema/util\r
+       http://www.springframework.org/schema/util/spring-util-2.5.xsd">\r
+\r
+       <!-- REFERENCE -->\r
+       <list id="repositories" interface="javax.jcr.Repository"\r
+               cardinality="0..N">\r
+               <listener ref="repositoryFactory" bind-method="register"\r
+                       unbind-method="unregister" />\r
+       </list>\r
+\r
+       <!-- SERVICES -->\r
+       <service ref="nodeJcrRepository">\r
+               <interfaces>\r
+                       <beans:value>javax.jcr.Repository</beans:value>\r
+                       <beans:value>org.argeo.jcr.MaintainedRepository</beans:value>\r
+               </interfaces>\r
+               <service-properties>\r
+                       <beans:entry key="argeo.jcr.repository.alias" value="node" />\r
+                       <beans:entry key="argeo.jcr.repository.home" value="${argeo.node.repo.home}" />\r
+               </service-properties>\r
+       </service>\r
+       <service ref="repositoryFactory" interface="javax.jcr.RepositoryFactory" />\r
+</beans:beans>
\ No newline at end of file