org.riotfamily.common.scheduling
Class MethodInvokingScheduledTask

java.lang.Object
  extended by org.springframework.util.MethodInvoker
      extended by org.riotfamily.common.scheduling.MethodInvokingScheduledTask
All Implemented Interfaces:
ScheduledTask, InitializingBean, Ordered

public class MethodInvokingScheduledTask
extends MethodInvoker
implements ScheduledTask, Ordered, InitializingBean


Field Summary
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Constructor Summary
MethodInvokingScheduledTask()
           
 
Method Summary
 void afterPropertiesSet()
           
 void execute()
          Executes the task.
 int getOrder()
           
 String[] getTriggerNames()
          Returns the name of the triggers on which the task should be executed.
 void setOrder(int order)
           
 void setTriggerNames(String[] triggerNames)
           
 
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
 

Constructor Detail

MethodInvokingScheduledTask

public MethodInvokingScheduledTask()
Method Detail

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