org.springframework.scheduling.support

## 类 MethodInvokingRunnable

- java.lang.Object
- - org.springframework.util.MethodInvoker
  - - org.springframework.beans.support.ArgumentConvertingMethodInvoker
    - - org.springframework.scheduling.support.MethodInvokingRunnable

- 所有已实现的接口:
    Runnable, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.InitializingBean

      public class MethodInvokingRunnable
      extends org.springframework.beans.support.ArgumentConvertingMethodInvoker
      implements Runnable, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.InitializingBean

  Adapter that implements the `Runnable` interface as a configurable method invocation based on Spring's MethodInvoker.

  Inherits common configuration properties from `MethodInvoker`.

  从以下版本开始:
    1.2.4
  作者:
    Juergen Hoeller
  另请参阅:
    `Executor.execute(Runnable)`

- - ### 字段概要

    字段
    限定符和类型 | 字段和说明
    --- | ---
    `protected Log` | `logger`

    - ### 从类继承的字段 org.springframework.util.MethodInvoker

      `targetClass`

  - ### 构造器概要

    构造器
    构造器和说明
    `MethodInvokingRunnable()`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | `afterPropertiesSet()`
    `protected String` | `getInvocationFailureMessage()` Build a message for an invocation failure exception.
    `protected Class<?>` | `resolveClassName(String className)`
    `void` | `run()`
    `void` | `setBeanClassLoader(ClassLoader classLoader)`

    - ### 从类继承的方法 org.springframework.beans.support.ArgumentConvertingMethodInvoker

      `doFindMatchingMethod, findMatchingMethod, getDefaultTypeConverter, getTypeConverter, registerCustomEditor, setTypeConverter`

    - ### 从类继承的方法 org.springframework.util.MethodInvoker

      `getArguments, getPreparedMethod, getTargetClass, getTargetMethod, getTargetObject, getTypeDifferenceWeight, invoke, isPrepared, prepare, setArguments, setStaticMethod, setTargetClass, setTargetMethod, setTargetObject`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 字段详细资料

    - #### logger

          protected final Log logger

  - ### 构造器详细资料

    - #### MethodInvokingRunnable

          public MethodInvokingRunnable()

  - ### 方法详细资料

    - #### setBeanClassLoader

          public void setBeanClassLoader(ClassLoader classLoader)

      指定者:
        `setBeanClassLoader` 在接口中 `org.springframework.beans.factory.BeanClassLoaderAware`

    - #### resolveClassName

          protected Class<?> resolveClassName(String className)
                                       throws ClassNotFoundException

      覆盖:
        `resolveClassName` 在类中 `org.springframework.util.MethodInvoker`
      抛出:
        `ClassNotFoundException`

    - #### afterPropertiesSet

          public void afterPropertiesSet()
                                  throws ClassNotFoundException,
                                         NoSuchMethodException

      指定者:
        `afterPropertiesSet` 在接口中 `org.springframework.beans.factory.InitializingBean`
      抛出:
        `ClassNotFoundException`
        `NoSuchMethodException`

    - #### run

          public void run()

      指定者:
        `run` 在接口中 `Runnable`

    - #### getInvocationFailureMessage

          protected String getInvocationFailureMessage()

      Build a message for an invocation failure exception.
      返回:
        the error message, including the target method name etc