Inherits common configuration properties from {@link org.springframework.util.MethodInvoker}.
Useful to generically encapsulate a method invocation as timer task for java.util.Timer
, in combination with a {@link org.springframework.scheduling.timer.DelegatingTimerTask} adapter.Can also be used with JDK 1.5's java.util.concurrent.Executor
abstraction, which works with plain Runnables.
Extended by Spring's {@link org.springframework.scheduling.timer.MethodInvokingTimerTaskFactoryBean}adapter for java.util.TimerTask
. Note that you can populate a ScheduledTimerTask object with a plain MethodInvokingRunnable instance as well, which will automatically get wrapped with a DelegatingTimerTask.
@author Juergen Hoeller
@since 1.2.4
@see org.springframework.scheduling.timer.ScheduledTimerTask#setRunnable(Runnable)
@see java.util.concurrent.Executor#execute(Runnable)
|
|
|
|