cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Quenot <...@anyware-tech.com>
Subject Re: How to connect Avalon Component and SessionListener
Date Fri, 16 Dec 2005 15:55:17 GMT
* Stefan Pietschmann:
> 
> When my component is looked up, I try to fetch the objectModel (to get the
> context as you suggested). Therefore I implement Contextualizable:
> 
> public void contextualize(Context context) {
>         Map objectModel = ContextHelper.getObjectModel(context);
>         HttpContext cocoonContext = (HttpContext)
> ObjectModelHelper.getContext(objectModel);
>         cocoonContext.setAttribute("AdaptationManager", this);
>     }

No, just keep context for further use.  You cannot access the
object model at contextualize() time.
-- 
Jean-Baptiste Quenot
Systèmes d'Information
ANYWARE TECHNOLOGIES
Tel : +33 (0)5 61 00 52 90
Fax : +33 (0)5 61 00 51 46
http://www.anyware-tech.com/

Mime
View raw message