]> git.argeo.org Git - lgpl/argeo-commons.git/blob - org.argeo.node.repo.jackrabbit/META-INF/spring/noderepo-osgi.xml
New project conventions
[lgpl/argeo-commons.git] / org.argeo.node.repo.jackrabbit / META-INF / spring / noderepo-osgi.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <beans:beans xmlns="http://www.springframework.org/schema/osgi"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:beans="http://www.springframework.org/schema/beans"
4 xmlns:util="http://www.springframework.org/schema/util"
5 xsi:schemaLocation="http://www.springframework.org/schema/osgi
6 http://www.springframework.org/schema/osgi/spring-osgi-1.1.xsd
7 http://www.springframework.org/schema/beans
8 http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
9 http://www.springframework.org/schema/util
10 http://www.springframework.org/schema/util/spring-util-2.5.xsd">
11
12 <!-- REFERENCE -->
13 <list id="repositories" interface="javax.jcr.Repository"
14 cardinality="0..N">
15 <listener ref="repositoryFactory" bind-method="register"
16 unbind-method="unregister" />
17 </list>
18
19 <!-- SERVICES -->
20 <service ref="nodeJcrRepository">
21 <interfaces>
22 <beans:value>javax.jcr.Repository</beans:value>
23 <beans:value>org.argeo.jcr.MaintainedRepository</beans:value>
24 </interfaces>
25 <service-properties>
26 <beans:entry key="argeo.jcr.repository.alias" value="node" />
27 <beans:entry key="argeo.jcr.repository.home" value="${argeo.node.repo.home}" />
28 </service-properties>
29 </service>
30 <service ref="repositoryFactory" interface="javax.jcr.RepositoryFactory" />
31 </beans:beans>