public class ScheduledMethodRunnable extends ObjectSE implements RunnableSE
MethodInvokingRunnable のバリアントは、引数なしのスケジュールされたメソッドの処理に使用されることを意図しています。Runnables のエラー戦略が実施されていると想定して、ユーザー例外を呼び出し元に伝播します。ScheduledAnnotationBeanPostProcessor| コンストラクターと説明 |
|---|
ScheduledMethodRunnable(ObjectSE target, MethodSE method) 指定されたターゲットインスタンスの ScheduledMethodRunnable を作成し、指定されたメソッドを呼び出します。 |
ScheduledMethodRunnable(ObjectSE target, StringSE methodName) 指定されたターゲットインスタンスの ScheduledMethodRunnable を作成し、指定されたメソッドを名前で呼び出します。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
MethodSE | getMethod() 呼び出すターゲットメソッドを返します。 |
ObjectSE | getTarget() メソッドを呼び出すターゲットインスタンスを返します。 |
void | run() |
StringSE | toString() |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, waitSE, waitSE, waitSEpublic ScheduledMethodRunnable(ObjectSE target, MethodSE method)
ScheduledMethodRunnable を作成し、指定されたメソッドを呼び出します。target - メソッドを呼び出すターゲットインスタンス method - 呼び出すターゲットメソッド public ScheduledMethodRunnable(ObjectSE target, StringSE methodName) throws NoSuchMethodExceptionSE
ScheduledMethodRunnable を作成し、指定されたメソッドを名前で呼び出します。target - メソッドを呼び出すターゲットインスタンス methodName - ターゲットメソッドの名前 NoSuchMethodExceptionSE - 指定されたメソッドが存在しない場合 public ObjectSE getTarget()
public MethodSE getMethod()
public void run()
RunnableSE の runSE public StringSE toString()
ObjectSE の toStringSE