<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:aop="http://www.springframework.org/schema/aop"
	xmlns:p="http://www.springframework.org/schema/p"
	xmlns:context="http://www.springframework.org/schema/context"
	xsi:schemaLocation="http://www.springframework.org/schema/beans
           http://www.springframework.org/schema/beans/spring-beans-4.3.xsd
           http://www.springframework.org/schema/aop
           http://www.springframework.org/schema/aop/spring-aop-4.3.xsd
           http://www.springframework.org/schema/context
           http://www.springframework.org/schema/context/spring-context-4.3.xsd">
    
     <!--jsLoader-->
    <bean id="jsLoader" class="com.hcl.cdp.utils.jsengine.JsLoader">
      <constructor-arg index="0" value="/disk1/config/jsengine"></constructor-arg>
    </bean>
    
     <!-- JS Map LP Updater -->
    <bean id="jsMapLPUpdaterJob"
          class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
        <property name="targetObject" ref="jsLoader" />
        <property name="targetMethod" value="loadJsMaps" />
    </bean>
    
    <bean id="jsMapLPCronTrigger"
          class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
        <property name="jobDetail" ref="jsMapLPUpdaterJob" />
        <property name="cronExpression" value="0 0/5 * * * ?" />
    </bean>

    <bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
        <property name="jobDetails">
            <list>
                <ref bean="jsMapLPUpdaterJob" />
            </list>
        </property>
        <property name="triggers">
            <list>
                <ref bean="jsMapLPCronTrigger" />
            </list>
        </property>
    </bean>
</beans>
