]> git.argeo.org Git - lgpl/argeo-commons.git/blob - META-INF/spring/noderepo-osgi.xml
Prepare next development cycle
[lgpl/argeo-commons.git] / 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 <reference id="repositoryFactory" interface="javax.jcr.RepositoryFactory"
14 cardinality="0..1">
15 <listener ref="jcrAuthenticationProvider" bind-method="register"
16 unbind-method="unregister" />
17 </reference>
18 <list id="repositories" interface="javax.jcr.Repository"
19 cardinality="0..N">
20 <listener ref="repositoryFactory" bind-method="register"
21 unbind-method="unregister" />
22 </list>
23
24 <!-- SERVICES -->
25 <service ref="repositoryFactory" interface="javax.jcr.RepositoryFactory" />
26
27 <service ref="nodeJcrRepository" interface="javax.jcr.Repository">
28 <service-properties>
29 <beans:entry value="node">
30 <beans:key>
31 <util:constant
32 static-field="org.argeo.jcr.ArgeoJcrConstants.JCR_REPOSITORY_ALIAS" />
33 </beans:key>
34 </beans:entry>
35 </service-properties>
36 </service>
37
38 <service ref="nodeJcrSession" interface="javax.jcr.Session">
39 <service-properties>
40 <beans:entry value="node">
41 <beans:key>
42 <util:constant
43 static-field="org.argeo.jcr.ArgeoJcrConstants.JCR_REPOSITORY_ALIAS" />
44 </beans:key>
45 </beans:entry>
46 </service-properties>
47 </service>
48
49 <service ref="jcrAuthenticationProvider"
50 interface="org.springframework.security.providers.AuthenticationProvider" />
51
52 </beans:beans>