Skip to content

Commit 9c22caf

Browse files
committed
Update whatsnew.adoc for 6.0.0-RC2
1 parent 7dec638 commit 9c22caf

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

spring-batch-docs/modules/ROOT/pages/whatsnew.adoc

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Spring Batch 6.0 includes the following features and improvements:
1919
* xref:whatsnew.adoc#seda-with-si[SEDA style with Spring Integration message channels]
2020
* xref:whatsnew.adoc#jackson-3-support[Jackson 3 support]
2121
* xref:whatsnew.adoc#remote-step-support[Remote step support]
22+
* xref:whatsnew.adoc#lambda-style-configuration[Lambda style configuration]
2223
* xref:whatsnew.adoc#deprecations-and-pruning[Deprecations and pruning]
2324

2425
[[dependencies-upgrade]]
@@ -228,6 +229,34 @@ The support for Jackson 2.x has been deprecated and will be removed in a future
228229
This release introduces support for remote step executions, allowing you to execute steps of a batch job on remote machines or clusters.
229230
This feature is particularly useful for large-scale batch processing scenarios where you want to distribute the workload across multiple nodes to improve performance and scalability. Remote step execution is facilitated through the use of Spring Integration messaging channels, which enable communication between the local job execution environment and the remote step executors.
230231

232+
[[lambda-style-configuration]]
233+
== Lambda style configuration
234+
235+
This release introduces the use of contextual lambda expressions to configure batch artefacts. This new style of configuration provides a more concise and readable way to define item readers and writers.
236+
237+
For example, instead of using the traditional builder pattern like this:
238+
239+
[source, java]
240+
----
241+
var reader = new FlatFileItemReaderBuilder()
242+
.resource(...)
243+
.delimited()
244+
.delimiter(",")
245+
.quoteCharacter('"')
246+
...
247+
.build();
248+
----
249+
250+
You can now use a lambda expression to configure the delimited options like this:
251+
252+
[source, java]
253+
----
254+
var reader = new FlatFileItemReaderBuilder()
255+
.resource(...)
256+
.delimited (config -> config.delimiter(',').quoteCharcter( '"' ))
257+
...
258+
.build();
259+
----
231260

232261
[[deprecations-and-pruning]]
233262
== Deprecations and pruning

0 commit comments

Comments
 (0)