Skip to content

Commit 7481cf8

Browse files
committed
Add note about not scoping step beans with job scope
Resolves #3900 Signed-off-by: Mahmoud Ben Hassine <mbenhassine@vmware.com>
1 parent 2bd3c15 commit 7481cf8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-batch-docs/modules/ROOT/pages/step/late-binding.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,8 @@ The following example shows how to access the `ExecutionContext` in XML:
201201

202202
NOTE: Any bean that uses late binding must be declared with `scope="step"`. See
203203
xref:step/late-binding.adoc#step-scope[Step Scope] for more information.
204-
A `Step` bean should not be step-scoped. If late binding is needed in a step
205-
definition, the components of that step (tasklet, item reader or writer, and so on)
204+
A `Step` bean should not be step-scoped or job-scoped. If late binding is needed in a step
205+
definition, then the components of that step (tasklet, item reade/writer, completion policy, and so on)
206206
are the ones that should be scoped instead.
207207

208208
NOTE: If you use Spring 3.0 (or above), the expressions in step-scoped beans are in the

0 commit comments

Comments
 (0)