Commit Graph

5074 Commits

Author SHA1 Message Date
Michael Minella
7d2a26a136 Add an ItemProcessor that delegates to a java.util.function.Function
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
2017-09-15 16:44:54 -05:00
Michael Minella
b180c75ce0 Housecleaning of build warnings 2017-09-15 15:58:22 -05:00
Michael Minella
340406a61f Polish 2017-09-14 14:29:26 -05:00
Glenn Renfro
6bdbe3029e Remove JavaDoc warnings part 2 2017-09-12 10:52:22 -05:00
Glenn Renfro
cf97912ec9 Adds ConversionService support to BeanWrapperFieldSetMapper.
This PR supercedes PR#430

Resolves BATCH-2529
2017-09-11 22:59:59 -05:00
Michael Minella
63df1fe529 Polish 2017-09-11 22:33:10 -05:00
Glenn Renfro
9fc6ba149b Remove first set of JavaDoc warnings 2017-09-11 11:41:46 -05:00
Glenn Renfro
834920f8f6 Updated link to build status.
Current build status link is a dead link

changed build status to use gradle CI build.
2017-08-24 21:06:03 -04:00
Glenn Renfro
bff2c14671 Docs support toggling Java Config and XML
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
2017-08-24 14:36:29 -04:00
Anne-Lore Montagne
e2147e2495 BATCH-2500: MultiResourceItemWriter with StaxEventItemWriter restarts at position 0
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.
2017-08-03 09:52:41 -04:00
Michael Minella
ff923e0b8f Disabling sysouts 2017-07-25 22:30:26 -05:00
Michael Minella
f376bd56df Enabling sysouts while debugging integration test failure 2017-07-25 22:19:03 -05:00
Michael Minella
cfdb58b8f8 Drop support for Log4j 1.x
This commit changes the Log4j dependencies to the current 2.x line.

Resolves BATCH-2607
2017-07-25 15:33:42 -05:00
Glenn Renfro
a861de203f Fixed a config doc to use EnableBatchProcessing
Was using EnableBatchConfiguration
2017-07-25 14:24:50 -05:00
Glenn Renfro
77d9ff9d95 Add builder for LdifReader.
Resolves #BATCH-2600
2017-07-25 14:16:11 -05:00
Glenn Renfro
0e510112a9 Add Builder for MappingLdifReader.
Resolves #BATCH-2601
2017-07-25 14:02:13 -05:00
geowarin
96883023b9 Fix off-by-one error in DelimitedLineTokenizer on blank strings
There is currently a bug causing an ArrayIndexOutOfBoundsException
when trying to tokenize a blank string with more than two characters
2017-07-25 13:42:00 -05:00
Glenn Renfro
f6f01b5bb1 Corrected errors in docs and removed index-pdf.adoc
index-pdf.adoc was  a duplicate of index-single.adoc.   And thus was not necessary
The errors corrected were identified in https://github.com/spring-projects/spring-batch/pull/429

Resolves BATCH-2632
2017-07-25 13:21:52 -05:00
Michael Minella
6e1e5e3099 Updated version of Spring Integration 2017-07-25 13:19:30 -05:00
taeksoon.jang
110b95ee1e Fixed typos in unit testing source code to make it compile and pass the test. 2017-07-25 12:30:38 -05:00
Michael Minella
9c191090c7 Updated releases for Spring Framework, Spring AMQP, and Spring Data 2017-07-25 12:25:04 -05:00
Philippe Marschall
9f990f47c4 BATCH-2408 Use ArrayList instead of Stack
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
2017-07-19 09:23:12 -05:00
Jimmy Praet
3968b77421 fix build on windows 2017-07-19 09:02:19 -05:00
Michael Minella
d1f7dd0215 Removed abstract parent classes for builders
The abstract classes used for the parents of the builders.  Their use
caused odd generic issues with the API.  This reverts that change.
2017-07-17 22:39:26 -05:00
Glenn Renfro
f2fcbfe2a8 Added builder for Neo4jItemReader
resolves BATCH-2610
2017-07-17 16:19:11 -05:00
Glenn Renfro
61f6cd5c0a Add tests for FlatFileItemReaderBuilder's name attribute. 2017-07-17 15:48:20 -05:00
Glenn Renfro
fcdc916c72 Added AmqpItemWriterBuilder
resolves BATCH-2626
2017-07-17 14:20:27 -05:00
Cameron
9256148cf2 BATCH-2630 - update not to rely on step execution order from DAO 2017-07-17 11:22:40 -05:00
Michael Minella
d0a3278d12 Refactored FixLengthTokenizer to use vargs
This commit updates the FixLengthTokenizer to use vargs instead of an
array for ease of configuration.
2017-07-16 16:51:52 -05:00
Michael Minella
7dccbd75a6 Refactored DelimitedLineTokenizer to use vargs
This commit updates the DelimitedLineTokenizer to use vargs instead of
arrays for ease of configuration.
2017-07-16 16:40:29 -05:00
Michael Minella
452bfb643a Updated to latest BUILD-SNAPSHOT dependencies
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.
2017-07-16 15:27:50 -05:00
Michael Minella
a13f43adec Polish 2017-07-13 14:51:03 -05:00
Glenn Renfro
67853f22de Documentation Migration
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
2017-07-13 14:49:33 -05:00
Michael Minella
5e65a283a1 Polish for BATCH-2609 2017-06-02 17:17:53 -05:00
Glenn Renfro
402da13f67 Added Builder for RepositoryItemWriter
resolves BATCH-2609
2017-06-02 17:04:45 -05:00
Michael Minella
70c24f50e3 Polish for BATCH-2616 2017-06-01 08:45:07 -05:00
Glenn Renfro
50353b6dd0 Add builder for ScriptItemProcessor
resolves #BATCH-2616
2017-05-31 10:33:47 -05:00
Glenn Renfro
a6ed38d1d5 Add builder for CompositeItemProcessor
resolves #BATCH-2617
2017-05-30 10:23:05 -05:00
Glenn Renfro
332a2017b3 Added Builder for ClassifierCompositeItemProcessor
resolves #BATCH-2618
2017-05-30 10:13:38 -05:00
Michael Minella
cf9cec3981 Polish on BATCH-2614 2017-05-26 17:35:11 -05:00
Glenn Renfro
8dd7d1e880 Added builder for GemfireItemWriter
resolves BATCH-2614
2017-05-26 17:33:42 -05:00
Michael Minella
6219de0473 Polish for BATCH-2613 2017-05-26 16:49:58 -05:00
Glenn Renfro
82f0fe9abb Added builder for MongoItemWriter
resolves BATCH-2613
2017-05-26 16:48:42 -05:00
Michael Minella
6e83f08348 Polish for BATCH-2612 2017-05-26 16:30:35 -05:00
Glenn Renfro
fa977333fe Added builder for MongoItemReader
resolves BATCH-2612
2017-05-26 16:26:39 -05:00
Glenn Renfro
ccb6e89166 Added builder for Neo4jWriter
resolves BATCH-2611
2017-05-26 12:58:25 -05:00
Michael Minella
95b5befe4b Polish to reslove BATCH-2606 2017-05-26 11:50:07 -05:00
Glenn Renfro
6950318bab Add Builder for RepositoryItemReader
resolves BATCH-2606
2017-05-26 11:49:56 -05:00
Glenn Renfro
4d9b13ce92 Updates builders to take advantage of abstract base classes.
Specifically AbstractItemCountingItemStreamItemReaderBuilder or AbstractItemStreamSupportBuilder

resolves BATCH-2608
2017-05-25 10:08:33 -05:00
Michael Minella
8f05c3e11e Add previously closed check around HibernateCusorItemReader#close()
This commit makes calling the close method on the
HibernateCursorItemReader safe to be called multiple times.

Resloves BATCH-2619
2017-05-25 09:41:49 -05:00