org.springframework.batch.integration.step
Class DelegateStep
java.lang.Object
org.springframework.batch.core.step.AbstractStep
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
| 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 |
DelegateStep
public DelegateStep()
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.