jakartaee / batch

The Jakarta Batch project produces the Batch Specification and API.
https://projects.eclipse.org/projects/ee4j.batch
Apache License 2.0
13 stars 17 forks source link

Implicit conversion in chunk steps #80

Open follis opened 4 years ago

follis commented 4 years ago

Originally opened as bug 7289 by rmannibucau

--------------Original Comment History---------------------------- Comment from = rmannibucau on 2015-09-05 09:23:40 +0000

Let take the case of a reader->processor->writer. I wonder if we couldnt add globally in the job some converters - a bit like JPA/JSF/... - to be able to respect the flow even if one "->" doesnt match.

if reader returns a Foo and processor processes a Bar and we have a converter Foo-> Bar then the flow can be respected even if reader->processor types don't match.

Side note: this implies to be able to type components and not rely on "Object" which is good as well IMO.