org.riotfamily.common.scheduling
Class MethodInvokingScheduledTask
java.lang.Object
org.springframework.util.MethodInvoker
org.riotfamily.common.scheduling.MethodInvokingScheduledTask
- All Implemented Interfaces:
- ScheduledTask, InitializingBean, Ordered
public class MethodInvokingScheduledTask
- extends MethodInvoker
- implements ScheduledTask, Ordered, InitializingBean
Methods inherited from class org.springframework.util.MethodInvoker |
findMatchingMethod, getArguments, getPreparedMethod, getTargetClass, getTargetMethod, getTargetObject, getTypeDifferenceWeight, invoke, isPrepared, prepare, resolveClassName, setArguments, setStaticMethod, setTargetClass, setTargetMethod, setTargetObject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MethodInvokingScheduledTask
public MethodInvokingScheduledTask()
getTriggerNames
public String[] getTriggerNames()
- Description copied from interface:
ScheduledTask
- Returns the name of the triggers on which the task should be executed.
- Specified by:
getTriggerNames
in interface ScheduledTask
setTriggerNames
public void setTriggerNames(String[] triggerNames)
getOrder
public int getOrder()
- Specified by:
getOrder
in interface Ordered
setOrder
public void setOrder(int order)
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet
in interface InitializingBean
- Throws:
Exception
execute
public void execute()
throws Exception
- Description copied from interface:
ScheduledTask
- Executes the task. The method is invoked by the Quartz scheduler when
one of the configured triggers fires.
- Specified by:
execute
in interface ScheduledTask
- Throws:
Exception