public abstract class AbstractStepExecutionImpl extends StepExecution
StepExecution
that injects StepContextParameter
upon resume.
Declare any transient
fields with StepContextParameter
that you might need.
The originating Step
may also be Inject
ed.
It must be marked Inject.optional()
.
Normally it is only used for the benefit of StepExecution.start()
, so it should be transient
.
Beware that injecting a step this way does not currently work if that step
has a no-argument (“default”) constructor (typically a DataBoundConstructor
).
If you need any information from the step definition after a restart,
make sure the Step
is Serializable
and do not mark it transient
.
(For a AbstractSynchronousStepExecution
these considerations are irrelevant.)
Modifier | Constructor and Description |
---|---|
protected |
AbstractStepExecutionImpl()
Deprecated.
Directly extend
StepExecution and avoid Guice for a new step.
Or see AbstractStepExecutionImpl(StepContext) for an existing step. |
protected |
AbstractStepExecutionImpl(StepContext context)
Constructor for compatibility.
|
Modifier and Type | Method and Description |
---|---|
protected void |
inject()
Deprecated.
|
void |
onResume()
Reinject
StepContextParameter s. |
applyAll, applyAll, getContext, getStatus, getStatusBounded, start, stop, toString
@Deprecated protected AbstractStepExecutionImpl()
StepExecution
and avoid Guice for a new step.
Or see AbstractStepExecutionImpl(StepContext)
for an existing step.protected AbstractStepExecutionImpl(StepContext context)
onResume()
(do not call the super
implementation)
if your execution historically extended AbstractStepExecutionImpl
, for serial form compatibility.
For new steps, extend StepExecution
directly.public void onResume()
StepContextParameter
s.
The Step
will not be reinjected.onResume
in class StepExecution
@Deprecated protected void inject()
Copyright © 2016–2017. All rights reserved.