Class DelegateStep

  • All Implemented Interfaces:
    Step, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean

    public class DelegateStep
    extends AbstractStep
    Provides a wrapper for an existing Step, delegating execution to it, but serving all other operations locally.
    Author:
    Dave Syer
    • Constructor Detail

      • DelegateStep

        public DelegateStep()
    • Method Detail

      • setDelegate

        public void setDelegate​(Step delegate)
        Parameters:
        delegate - the delegate to set
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws java.lang.Exception
        Check mandatory properties (delegate).
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Overrides:
        afterPropertiesSet in class AbstractStep
        Throws:
        java.lang.Exception
      • doExecute

        protected void doExecute​(StepExecution stepExecution)
                          throws java.lang.Exception
        Description copied from class: AbstractStep
        Extension point for subclasses to execute business logic. Subclasses should set the ExitStatus on the StepExecution before returning.
        Specified by:
        doExecute in class AbstractStep
        Parameters:
        stepExecution - the current step context
        Throws:
        java.lang.Exception - checked exception thrown by implementation