org.springframework.scheduling.support

Class MethodInvokingRunnable

    • Field Detail

      • logger

        protected final Log logger
    • Constructor Detail

      • MethodInvokingRunnable

        public MethodInvokingRunnable()
    • Method Detail

      • resolveClassName

        protected java.lang.Class<?> resolveClassName(java.lang.String className)
                                               throws java.lang.ClassNotFoundException
        Description copied from class: MethodInvoker
        Resolve the given class name into a Class.

        The default implementations uses ClassUtils.forName, using the thread context class loader.

        Overrides:
        resolveClassName in class MethodInvoker
        Parameters:
        className - the class name to resolve
        Returns:
        the resolved Class
        Throws:
        java.lang.ClassNotFoundException - if the class name was invalid
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws java.lang.ClassNotFoundException,
                                       java.lang.NoSuchMethodException
        Description copied from interface: InitializingBean
        Invoked by the containing BeanFactory after it has set all bean properties and satisfied BeanFactoryAware, ApplicationContextAware etc.

        This method allows the bean instance to perform validation of its overall configuration and final initialization when all bean properties have been set.

        Specified by:
        afterPropertiesSet in interface InitializingBean
        Throws:
        java.lang.ClassNotFoundException
        java.lang.NoSuchMethodException
      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
      • getInvocationFailureMessage

        protected java.lang.String getInvocationFailureMessage()
        Build a message for an invocation failure exception.
        Returns:
        the error message, including the target method name etc