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
Deprecated, for removal: This API element is subject to removal in a future version.
since 5.0 with no replacement. Scheduled for removal in 5.2.
Provides a wrapper for an existing
Step
, delegating execution to it, but
serving all other operations locally.- Author:
- Dave Syer, Mahmoud Ben Hassine
-
Field Summary
Fields inherited from interface org.springframework.batch.core.Step
STEP_TYPE_KEY
-
Constructor Summary
ConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated, for removal: This API element is subject to removal in a future version.Check mandatory properties (delegate).protected void
doExecute
(StepExecution stepExecution) Deprecated, for removal: This API element is subject to removal in a future version.Extension point for subclasses to execute business logic.void
setDelegate
(Step delegate) Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class org.springframework.batch.core.step.AbstractStep
close, doExecutionRegistration, doExecutionRelease, execute, getCompositeListener, getJobRepository, getName, getStartLimit, isAllowStartIfComplete, open, registerStepExecutionListener, setAllowStartIfComplete, setBeanName, setJobRepository, setMeterRegistry, setName, setObservationConvention, setObservationRegistry, setStartLimit, setStepExecutionListeners, toString
-
Constructor Details
-
DelegateStep
public DelegateStep()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
setDelegate
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
delegate
- the delegate to set
-
afterPropertiesSet
Deprecated, for removal: This API element is subject to removal in a future version.Check mandatory properties (delegate).- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Overrides:
afterPropertiesSet
in classAbstractStep
- Throws:
Exception
-
doExecute
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:AbstractStep
Extension point for subclasses to execute business logic. Subclasses should set theExitStatus
on theStepExecution
before returning.- Specified by:
doExecute
in classAbstractStep
- Parameters:
stepExecution
- the current step context- Throws:
Exception
- checked exception thrown by implementation
-