cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <va...@reverycodes.com>
Subject Re: spring prototype beans and access to current request data
Date Mon, 07 Apr 2008 17:06:46 GMT
On Apr 7, 2008, at 11:57 AM, yduchesne wrote:
> I want to implement a custom SourceFactory that will require access  
> to the
> "object model" (holding the request, response, etc.).
>
> Contrary to sitemap components, the SourceFactory interface does not  
> provide
> a way to receive the object model as an argument. I have read about
> potentially implementing my factory in Avalon, but I would much prefer
> sticking to Spring since I am working with 2.2 and it seems to be the
> favored approach from now on.
>
> How could my SourceFactory be provided with the "current" object  
> model (the
> one corresponding to the current request)?

You can use ProcessInfoProvider bean:

   http://cocoon.apache.org/2.2/core-modules/sitemap-api/1.0/apidocs/org/apache/cocoon/processing/ProcessInfoProvider.html


Vadim


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message