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
Improve documentation of scoped beans definition #1502
Comments
Simon Wong commented If JavaConfig being used (no such issue for using xml config), adding
|
Tobias Flohre commented It will work when the method writer returns the FlatFileItemWriter as type. JavaConfig does not recognize that the writer is an ItemStream as well if the return type is ItemWriter. But anyway, it would be nice if it would work without that workaround. |
Michael Minella commented Per Tobias Flohre, ItemWriter doesn't have an open method...ItemStream does so there is nothing to open. If you return an ItemStream, or an ItemStreamWriter, it would should fine. |
Tobias Flohre commented One more comment to make it clearer: when a bean is step-scoped, it does not get instantiated on startup, instead a cglib proxy based on the return type of the |
Simon Wong commented Thanks both of you. |
Simon Wong opened BATCH-2097 and commented
SO related questions:
Affects: 2.2.1
The text was updated successfully, but these errors were encountered: