Class CallableTaskletAdapter

  • All Implemented Interfaces:
    Tasklet, org.springframework.beans.factory.InitializingBean

    public class CallableTaskletAdapter
    extends java.lang.Object
    implements Tasklet, org.springframework.beans.factory.InitializingBean
    Adapts a Callable<RepeatStatus> to the Tasklet interface.
    Author:
    Dave Syer
    • Constructor Detail

      • CallableTaskletAdapter

        public CallableTaskletAdapter()
    • Method Detail

      • setCallable

        public void setCallable​(java.util.concurrent.Callable<RepeatStatus> callable)
        Public setter for the Callable.
        Parameters:
        callable - the Callable to set
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws java.lang.Exception
        Assert that the callable is set.
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        java.lang.Exception
        See Also:
        InitializingBean.afterPropertiesSet()