You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@batchee.apache.org by Romain Manni-Bucau <rm...@gmail.com> on 2014/03/30 22:18:33 UTC
proposal for 0.2 or 0.3
Hi
I'd like to get a kind of fluent typed API for 0.2,
wdyt of:
public void registerBatches(@Obserses BatchesRegistration batches) {
// CDI but should be accessible through a SPI too for JavaSE
batches.addBatch("my-batch")
.batchlet("step1", new MyBatchelet())
.chunk("chuk2")
.reader(new MyReader())
.processor(new MyProc1()) // allow chains
.processor(new MyProc2())
.processor(new MyProc3())
.writer(new MyWriter())
.end()
.end(); // can addBatch again...
}
wdyt?
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau