cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marco Rolappe" <m_rola...@web.de>
Subject AW: ServiceManager questions
Date Mon, 08 Mar 2004 19:00:26 GMT
hi oscar,

see inline comments...

> -----Ursprungliche Nachricht-----
> Von: users-return-64228-m_rolappe=web.de@cocoon.apache.org
> [mailto:users-return-64228-m_rolappe=web.de@cocoon.apache.org]Im Auftrag
> von Oscar Picasso
> Gesendet: Montag, 8. Marz 2004 17:34
> An: cocoon list
> Betreff: ServiceManager questions
>
>
> Hi,
>
> On the wikki I have read that cocoon uses an Excalibur Component
> Manager at the
> top level and child Excalibur Component Managers at each sitemap level.
>
> 1- Does this mean that when using a Serviceable sitemap component, the
> ServiceManager provided by cocoon to the service method is a
> 'WrapperServiceManager' ?

yes, at least for cocoon <= 2.1.x.  but that WrapperServicerManager proxy is
actually provided by the ECM (ExcaliburComponentManager) automagically. you
shouldn't assume anything other than a ServiceManager when your component is
service()d, though; ECM (and thus WrapperServiceManager) will be gone in
cocoon 2.2.

> 2-Am I correct to suppose that the ServiceManager provided to a
> Serviceable
> sitemap component is the sitemap level (Wrapper)ServiceManager
> and not the top
> level one.

yes, every sitemap got its own ComponentManager/ServiceManager, which is
passed to sitemap components of the respective sitemap. I'm not sure,
though, which CM/SM you mean with the top level one; the root sitemap's or
cocoon's (which normally is the 'root' and the one configured via
cocoon.xconf)? the latter can even be passed a parent CM. anyways, don't
forget that the sitemap CM's form a hierarchy; each subsitemap's CM
delegates to its parent sitemap's CM.

hope that clarified it a bit.



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


Mime
View raw message