batchee-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject proposal for 0.2 or 0.3
Date Sun, 30 Mar 2014 20:18:33 GMT
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

Mime
View raw message