cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler" <>
Subject RE: (In)Dependence on servlet - (Re: [RT] Flow as a block)
Date Fri, 14 Mar 2003 13:13:36 GMT
Nicola Ken Barozzi wrote:
> Well, the fact is that some parts reference the CocoonServlet, and the 
> StreamGenerator is usable only on Servlets! Ok, this has already been 
> discussed, so I think we should get to a conclusion here.
> Proposal:
> 1) move all environments in separate ./src/environments dirs, that each 
> generate a separate jar, exactly like the blocks are done ATM. In the 
> future the blocks will be runtime pluggable, while environments will 
> remain as static jars at load time.
Ok, we should consider adding libs to an environment directory as well,
so the servlet.jar could become part of the servlet environment.

> 2) add a methid to the Environmment to get a Stream from the request and 
> make the StreamGenerator use it. It's true that Requests can have 
> multiple streams, but I'll leave that case to a future discussion.
Shouldn't this be added to the Request? The StreamGenerator does not 
have access to the Environment obejct.

> These two items will clearly show us the dependencies in our code, and 
> eventually lighten the dependency between our Enviroment implementations.
> Does this sound reasonable?


View raw message