类 DelegateStep
- java.lang.Object
- org.springframework.batch.core.step.AbstractStep
- org.springframework.batch.integration.step.DelegateStep
- 所有已实现的接口:
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.- 作者:
- Dave Syer
字段概要
从接口继承的字段 org.springframework.batch.core.Step
STEP_TYPE_KEY
构造器概要
构造器 构造器 说明 DelegateStep()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
afterPropertiesSet()
Check mandatory properties (delegate).protected void
doExecute(StepExecution stepExecution)
Extension point for subclasses to execute business logic.void
setDelegate(Step delegate)
从类继承的方法 org.springframework.batch.core.step.AbstractStep
close, doExecutionRegistration, doExecutionRelease, execute, getCompositeListener, getJobRepository, getName, getStartLimit, isAllowStartIfComplete, open, registerStepExecutionListener, setAllowStartIfComplete, setBeanName, setJobRepository, setName, setStartLimit, setStepExecutionListeners, toString
构造器详细资料
DelegateStep
public DelegateStep()
方法详细资料
setDelegate
public void setDelegate(Step delegate)
- 参数:
delegate
- the delegate to set
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.Exception
Check mandatory properties (delegate).- 指定者:
afterPropertiesSet
在接口中org.springframework.beans.factory.InitializingBean
- 覆盖:
afterPropertiesSet
在类中AbstractStep
- 抛出:
java.lang.Exception
doExecute
protected void doExecute(StepExecution stepExecution) throws java.lang.Exception
从类复制的说明:AbstractStep
Extension point for subclasses to execute business logic. Subclasses should set theExitStatus
on theStepExecution
before returning.- 指定者:
doExecute
在类中AbstractStep
- 参数:
stepExecution
- the current step context- 抛出:
java.lang.Exception
- checked exception thrown by implementation