Class DelegateStep
- java.lang.Object
- org.springframework.batch.core.step.AbstractStep
- org.springframework.batch.integration.step.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 existingStep, delegating execution to it, but serving all other operations locally.- Author:
- Dave Syer
Field Summary
Fields inherited from interface org.springframework.batch.core.Step
STEP_TYPE_KEY
Constructor Summary
Constructors Constructor Description DelegateStep()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()Check mandatory properties (delegate).protected voiddoExecute(StepExecution stepExecution)Extension point for subclasses to execute business logic.voidsetDelegate(Step delegate)Methods inherited from class org.springframework.batch.core.step.AbstractStep
close, doExecutionRegistration, doExecutionRelease, execute, getCompositeListener, getJobRepository, getName, getStartLimit, isAllowStartIfComplete, open, registerStepExecutionListener, setAllowStartIfComplete, setBeanName, setJobRepository, setName, setStartLimit, setStepExecutionListeners, toString
Method Detail
setDelegate
public void setDelegate(Step delegate)
- Parameters:
delegate- the delegate to set
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.ExceptionCheck mandatory properties (delegate).- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Overrides:
afterPropertiesSetin classAbstractStep- Throws:
java.lang.Exception
doExecute
protected void doExecute(StepExecution stepExecution) throws java.lang.Exception
Description copied from class:AbstractStepExtension point for subclasses to execute business logic. Subclasses should set theExitStatuson theStepExecutionbefore returning.- Specified by:
doExecutein classAbstractStep- Parameters:
stepExecution- the current step context- Throws:
java.lang.Exception- checked exception thrown by implementation