public class MethodInvokingRunnable extends ArgumentConvertingMethodInvoker implements RunnableSE, BeanClassLoaderAware, InitializingBean
Runnable
SE インターフェースを実装するアダプター。MethodInvoker
から共通の構成プロパティを継承します。
Executor.execute(Runnable)
SE修飾子と型 | フィールドと説明 |
---|---|
protected Log | logger |
targetClass
コンストラクターと説明 |
---|
MethodInvokingRunnable() |
修飾子と型 | メソッドと説明 |
---|---|
void | afterPropertiesSet() |
protected StringSE | getInvocationFailureMessage() 呼び出し失敗の例外のメッセージを作成します。 |
protected ClassSE<?> | resolveClassName(StringSE className) 指定されたクラス名をクラスに解決します。 |
void | run() |
void | setBeanClassLoader(ClassLoaderSE classLoader) Bean class loader SE を Bean インスタンスに提供するコールバック。 |
doFindMatchingMethod, findMatchingMethod, getDefaultTypeConverter, getTypeConverter, registerCustomEditor, setTypeConverter
getArguments, getPreparedMethod, getTargetClass, getTargetMethod, getTargetObject, getTypeDifferenceWeight, invoke, isPrepared, prepare, setArguments, setStaticMethod, setTargetClass, setTargetMethod, setTargetObject
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
protected final Log logger
public void setBeanClassLoader(ClassLoaderSE classLoader)
BeanClassLoaderAware
class loader
SE を Bean インスタンスに提供するコールバック。 通常の Bean プロパティの設定後、ただし InitializingBean's
InitializingBean.afterPropertiesSet()
メソッドやカスタム init-method などの初期化コールバックの前に呼び出されます。
BeanClassLoaderAware
の setBeanClassLoader
classLoader
- 所有クラスローダー protected ClassSE<?> resolveClassName(StringSE className) throws ClassNotFoundExceptionSE
MethodInvoker
デフォルトの実装では、スレッドコンテキストクラスローダーを使用して ClassUtils.forName
を使用します。
MethodInvoker
の resolveClassName
className
- 解決するクラス名 ClassNotFoundExceptionSE
- クラス名が無効だった場合 public void afterPropertiesSet() throws ClassNotFoundExceptionSE, NoSuchMethodExceptionSE
InitializingBean
BeanFactoryAware
、ApplicationContextAware
などを満たした後、包含 BeanFactory
によって呼び出されます。このメソッドにより、Bean インスタンスは、すべての Bean プロパティが設定されたときに、その全体的な構成の検証と最終的な初期化を実行できます。
InitializingBean
の afterPropertiesSet
ClassNotFoundExceptionSE
NoSuchMethodExceptionSE
public void run()
RunnableSE
の runSE
protected StringSE getInvocationFailureMessage()