<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
	<import resource="dbCacheSingleSecurityGenerateBean.xml"/>
	<bean id="dbSecurityRefreshJob"
		class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
		<property name="targetObject" ref="securityDatabaseGeneratorBean" />
		<property name="targetMethod" value="generateMaps" />
	</bean>
	<bean id="cronSecurityTrigger"
		class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
		<property name="jobDetail" ref="dbSecurityRefreshJob" />
		<property name="cronExpression" value="0 0/15 * * * ?" />
		<property name="startDelay" value="1800000" />
	</bean>

	<bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
		<property name="jobDetails">
			<list>
				<ref bean="dbSecurityRefreshJob" />
			</list>
		</property>
		<property name="triggers">
			<list>
				<ref bean="cronSecurityTrigger" />
			</list>
		</property>
	</bean>
</beans>