cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Grobmeier <grobme...@gmail.com>
Subject [cocoon3] why setup()?
Date Thu, 29 Mar 2012 22:57:48 GMT
Hello folks,

I was looking at cocoon3 Pipeline interface. I saw:

setup(OutputStream outputStream)
setup(OutputStream outputStream, Map<String,Object> parameters)

It seem one always needs to call setup() (which makes sense). But why
is there a method like this? Couldn't it be the execute method which
takes the OutputStream?

execute(OutputStream outputStream)
execute(OutputStream outputStream, Map<String,Object> parameters)

One would get rid of setup - this feels more natural to me at first glance.

Cheers
Christian



-- 
http://www.grobmeier.de
https://www.timeandbill.de

Mime
View raw message