+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
+
+ <beans>
+
+ <bean id="cacheConfig" class="org.wamblee.io.ClassPathResource">
+ <constructor-arg><value>properties/test.org.wamblee.security.ehcache.xml</value></constructor-arg>
+ </bean>
+
+ <bean id="userCache" class="org.wamblee.cache.EhCache">
+ <constructor-arg><ref local="cacheConfig"/></constructor-arg>
+ <constructor-arg><value>users</value></constructor-arg>
+ </bean>
+
+
+ <bean id="passwordValidator"
+ class="org.wamblee.usermgt.RegexpNameValidator">
+ <constructor-arg><value>.{5,}</value></constructor-arg>
+ <constructor-arg><value>INVALID_PASSWORD</value></constructor-arg>
+ <constructor-arg><value>Password must have at least 5 characters</value></constructor-arg>
+ </bean>
+
+ <bean id="passwordDigester"
+ class="org.wamblee.security.encryption.Md5HexMessageDigester">
+ </bean>
+
+ <bean id="org.wamblee.usermgt.UserSet"
+ class="org.wamblee.usermgt.hibernate.HibernateUserSet">
+ <constructor-arg><ref local="userCache"/></constructor-arg>
+ <constructor-arg><ref local="passwordValidator"/></constructor-arg>
+ <constructor-arg><ref local="passwordDigester"/></constructor-arg>
+
+ <property name="sessionFactory"><ref bean="sessionFactory"/></property>
+
+ </bean>
+
+ <bean id="org.wamblee.usermgt.GroupSet"
+ class="org.wamblee.usermgt.hibernate.HibernateGroupSet">
+
+ <property name="sessionFactory"><ref bean="sessionFactory"/></property>
+ </bean>
+
+ </beans>
\ No newline at end of file