Skip to content

Allow ItemListenerSupport inside SimpleStepBuilder#listener(...) [BATCH-2829] #785

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
spring-projects-issues opened this issue Jul 9, 2019 · 1 comment
Labels
status: duplicate Issues that are duplicates of other issues

Comments

@spring-projects-issues
Copy link
Collaborator

Sam-Kruglov opened BATCH-2829 and commented

If I want to define a global exception handler using ItemListenerSupport then I have to cast it in step factory like this:

stepBuilderFactory.get("myStep")
                .chunk<Long, Booelan>(1)
                .reader(reader)
                .processor(processor)
                .listener((ItemProcessListener<Object, Object>) errorHandler)

And I checked, that it does listen to all 3 (reader, processor, writer)


Affects: 4.1.2

@fmbenhassine
Copy link
Contributor

Closing this as duplicate of #1141

@fmbenhassine fmbenhassine closed this as not planned Won't fix, can't repro, duplicate, stale May 3, 2024
@fmbenhassine fmbenhassine added status: duplicate Issues that are duplicates of other issues and removed status: waiting-for-triage Issues that we did not analyse yet type: enhancement labels May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate Issues that are duplicates of other issues
Projects
None yet
Development

No branches or pull requests

2 participants