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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]