-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Do you use job scoped beans? #4869
fmbenhassine
started this conversation in
Polls
-
Do you use job scoped beans (ie @JobScope
)? If yes, please elaborate on your use case by adding a comment with an example.
Do you use job scoped beans?
Yes
12%
No
87%
8 votes ·
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment
-
In most cases, it’s used to configure beans associated with JobParameters.
@Bean @JobScope public HelloDate2Tasklet helloDate2Tasklet( @Value("#{jobParameters['helloDate']}") LocalDate date) { return new HelloDate2Tasklet(date); }
Beta Was this translation helpful? Give feedback.
All reactions
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment