Andrew C. Oliver wrote:
I disagree. It should be a component. What if I want to use cocoon for transformations/etc outside the context of a servlet? (I might soon).A container can be - usually is - also a component.
Look for example at Tweety on Avalon, it's a container, but also a component.
-Andy
The Cocoon object is an Avalon component, but in fact doesn't need to be : it is conceptually a container, which loads the configuration, creates an ECM and delegates the implementation of the Processor interface to the component implementing this interface that is managed by the ECM (look at Cocoon.process()).
So what you are looking for may be simply looking up the Processor role in the ECM that manages your component, which will return the sitemap engine, and call process() on that object.
Hope this helps,
Sylvain
-- Nicola Ken Barozzi [EMAIL PROTECTED] - verba volant, scripta manent - (discussions get forgotten, just code remains) --------------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]