repositories voor usermgt in aparte file.
[utils] / security / src / test / resources / spring / test.org.wamblee.security.usermgt.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
3  
4  <beans> 
5     
6     <bean id="org.wamblee.usermgt.UserAdministration-target"
7         class="org.wamblee.usermgt.UserAdministrationImpl">
8         
9         <constructor-arg>
10            <ref bean="org.wamblee.usermgt.UserSet"/>
11         </constructor-arg>
12         
13         <constructor-arg>
14             <ref bean="org.wamblee.usermgt.GroupSet"/>
15         </constructor-arg>
16         
17         <constructor-arg>
18             <bean class="org.wamblee.usermgt.RegexpNameValidator">
19                 <constructor-arg><value>[a-zA-Z]+[a-zA-Z0-9]*</value></constructor-arg>
20                 <constructor-arg><value>INVALID_USERNAME</value></constructor-arg>
21                 <constructor-arg><value></value></constructor-arg>
22             </bean>
23         </constructor-arg>
24         
25         <constructor-arg>
26             <bean class="org.wamblee.usermgt.RegexpNameValidator">
27                 <constructor-arg><value>[a-zA-Z]+[a-zA-Z0-9]*</value></constructor-arg>
28                 <constructor-arg><value>INVALID_GROUPNAME</value></constructor-arg>
29                 <constructor-arg><value></value></constructor-arg>
30             </bean>
31         </constructor-arg>
32       
33     </bean>
34     
35     <bean id="usermanagement-lock" class="org.wamblee.concurrency.JvmLock"/>
36     
37      <bean id="usermanagement-lock-advice" class="org.wamblee.concurrency.spring.LockAdvice">
38          <constructor-arg><ref bean="usermanagement-lock"/></constructor-arg>
39      </bean>
40      
41      <bean id="org.wamblee.usermgt.UserAdministration" 
42          class="org.springframework.aop.framework.ProxyFactoryBean">
43          <property name="proxyInterfaces"><value>org.wamblee.usermgt.UserAdministration</value></property>
44          <property name="interceptorNames"><value>usermanagement-lock-advice</value></property>
45          <property name="target"><ref bean="org.wamblee.usermgt.UserAdministration-target"/></property>
46      </bean>
47      
48  </beans>