This commit adds a new `ItemProcessor` that delegates to a
`java.util.function.Function`. It also enables users to configure a
`Function` as an `ItemProcessor` via the builders (so they don't need to
worry about the `ItemProcessor` wrapper in the first place).
Resolves BATCH-2641
This is a demo of the functionality and it located in the domain.adoc file.
added code to handl PDF ifdef
JavaScript added to support slider control
If view in local file system use safari. (Cookies not supported on local filesysem on chrome)
Remaining bug... if user selects xml and refreshes the examples still show XML but slider goes back to JAVA.
Could use a new tool suite. But this is based on the Spring.io toggle.
Implemented java vs xml toggle in reference documentation
This commit ports the javascript widget used in Sagan for toggling
between Maven and Gradle on each project page and uses it to toggle
between java based config and XML based config. The preference the user
selects is cookied so that it should stick between pages in the multiple
page layout as well as for future visits to the documentation.
The only page that has implemented the toggle in this commit is the
domain.adoc page. The spring-batch-intro.adoc has the toggle reference
in it, but it's only there to verify multiple includes are working.
Polishing
MultiResourceItemWriter delegating to a StaxEventItemWriter doesn't restart properly.
* Changed the open() method in MultiResourceItemWriter by setting the flag 'opened' to true.
Updated PR with code review comments.
Stack is a pre Java 1.2 class that is slower than ArrayList as it
incurs additional synchronization overhead.
- replace Stack with ArrayList where it's not public API
Issue: BATCH-2408
This commit updates the build to use the latest BUILD-SNAPSHOT
dependenceis for Spring Framework, Spring Data, and Spring AMQP. It
also fixes a test that was broken when using the latest Spring Data
Mongo.
This commit migrates the old Spring Batch documentation to a new
asciidoc toolchain. It will be the first piece in modernizing the
existing Spring Batch documentation. Future steps will include making
java based configuraion more prominant in the reference documentation.
Resolves BATCH-2620