org.springframework.batch.integration.step
Class DelegateStep

java.lang.Object
  extended by org.springframework.batch.core.step.AbstractStep
      extended by org.springframework.batch.integration.step.DelegateStep
All Implemented Interfaces:
Step, BeanNameAware, 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 Summary
DelegateStep()
           
 
Method Summary
 void afterPropertiesSet()
          Check mandatory properties (delegate).
protected  void doExecute(StepExecution stepExecution)
           
 void setDelegate(Step delegate)
           
 
Methods inherited from class org.springframework.batch.core.step.AbstractStep
close, execute, getCompositeListener, getJobRepository, getName, getStartLimit, isAllowStartIfComplete, open, registerStepExecutionListener, setAllowStartIfComplete, setBeanName, setJobRepository, setName, setStartLimit, setStepExecutionListeners, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DelegateStep

public DelegateStep()
Method Detail

setDelegate

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

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Check mandatory properties (delegate).

Specified by:
afterPropertiesSet in interface InitializingBean
Overrides:
afterPropertiesSet in class AbstractStep
Throws:
Exception

doExecute

protected void doExecute(StepExecution stepExecution)
                  throws Exception
Specified by:
doExecute in class AbstractStep
Throws:
Exception


Copyright © 2011. All Rights Reserved.