lundi 16 mai 2016

Java Design Pattern for Service to apply method over object

I am looking for a design pattern which will allow my service to process the BufferedImage and than store it to different databases and returns something other object. Is it possible to do so ?

Object processed = imageService.process(bufferedImage)
                .resize(width, height)
                .crop()
                .removeTransparency()
                .saveToDB_A()
                .saveToDB_B()

Aucun commentaire:

Enregistrer un commentaire