Quartz Crontab trigger

 

 

 

 

 

< bean id = "terminateTrigger" class = "org.springframework.scheduling.quartz.CronTriggerBean"

>

 

 

< property name = "jobDetail" ref = "terminateJob"

/>

 

 

< property name = "cronExpression" value = "0 0 23 * * ?"

/>

 

 

</ bean >

 

 

<bean id="terminateJob" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">

 

<property name="targetObject">

 

<bean class=com.get.quantum.lifecycle.LifeCycleManager" factory-method="getLifeCycleManager"/>

 

</property>

 

<property name="targetMethod" value="terminateServer"/>

 

<property name="arguments">

 

<list>

 

<value>dummy</value>

 

</list>

 

</property>

 

<property name="concurrent" value="true"/>

 

</bean>

你可能感兴趣的:(bean,quartz)