<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
   <!--   S E R V I C E S   -->
	<bean id="silentLoginService"
		class="com.company.silentlogin.service.SilentLoginServiceImpl">
		<property name="silentLoginDAO" ref="silentLoginDAO" />
      <property name="ticketGenerator">
         <bean class="com.company.security.service.SecureTicketService"/>
      </property>
      <property name="menuElementService" ref="menuElementService"/>
      <property name="securityService" ref="securityService"/>
   </bean>

   <!--   D A T A   A C C E S S   S E R V I C E S   -->
   <bean id="silentLoginDAO"	class="com.company.silentlogin.dao.cache.CachedSilentLoginDAO">
      <property name="cache" ref="silentLoginCacheBackend" />
   </bean>

   <!--   C A C H E   S E R V I C E S   -->
	<bean id="silentLoginCacheBackend" class="org.springframework.cache.ehcache.EhCacheFactoryBean">
		<property name="cacheManager" ref="cacheManager"/>
		<property name="cacheName" value="silentLoginTicketCache"/>
	</bean>
</beans>