scheduling.concurrent
package which is based on Java 5's java.util.concurrent.ExecutorService
@Deprecated public class MethodInvokingTimerTaskFactoryBean extends MethodInvokingRunnable implements org.springframework.beans.factory.FactoryBean<TimerTask>
FactoryBean
that exposes a TimerTask
object which
delegates job execution to a specified (static or non-static) method.
Avoids the need to implement a one-line TimerTask that just invokes
an existing business method.
Derives from MethodInvokingRunnable
to share common properties
and behavior, effectively providing a TimerTask adapter for it.
DelegatingTimerTask
,
ScheduledTimerTask.setTimerTask(java.util.TimerTask)
,
ScheduledTimerTask.setRunnable(java.lang.Runnable)
,
MethodInvokingRunnable
,
MethodInvokingFactoryBean
logger
Constructor and Description |
---|
MethodInvokingTimerTaskFactoryBean()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet()
Deprecated.
|
TimerTask |
getObject()
Deprecated.
|
Class<TimerTask> |
getObjectType()
Deprecated.
|
boolean |
isSingleton()
Deprecated.
|
getInvocationFailureMessage, resolveClassName, run, setBeanClassLoader
doFindMatchingMethod, findMatchingMethod, getDefaultTypeConverter, getTypeConverter, registerCustomEditor, setTypeConverter
public MethodInvokingTimerTaskFactoryBean()
public void afterPropertiesSet() throws ClassNotFoundException, NoSuchMethodException
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
afterPropertiesSet
in class MethodInvokingRunnable
ClassNotFoundException
NoSuchMethodException
public TimerTask getObject()
getObject
in interface org.springframework.beans.factory.FactoryBean<TimerTask>
public Class<TimerTask> getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean<TimerTask>
public boolean isSingleton()
isSingleton
in interface org.springframework.beans.factory.FactoryBean<TimerTask>