public class ScheduledMethodRunnable
extends java.lang.Object
implements java.lang.Runnable
MethodInvokingRunnable
meant to be used for processing
of no-arg scheduled methods. Propagates user exceptions to the caller,
assuming that an error strategy for Runnables is in place.ScheduledAnnotationBeanPostProcessor
Modifier and Type | Field and Description |
---|---|
private java.lang.reflect.Method |
method |
private java.lang.Object |
target |
Constructor and Description |
---|
ScheduledMethodRunnable(java.lang.Object target,
java.lang.reflect.Method method) |
ScheduledMethodRunnable(java.lang.Object target,
java.lang.String methodName) |
Modifier and Type | Method and Description |
---|---|
java.lang.reflect.Method |
getMethod() |
java.lang.Object |
getTarget() |
void |
run() |
private final java.lang.Object target
private final java.lang.reflect.Method method
public ScheduledMethodRunnable(java.lang.Object target, java.lang.reflect.Method method)
public ScheduledMethodRunnable(java.lang.Object target, java.lang.String methodName) throws java.lang.NoSuchMethodException
java.lang.NoSuchMethodException