cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carsten Ziegeler <cziege...@apache.org>
Subject Re: [RT] A Unified Environment Model?
Date Thu, 03 Mar 2005 14:01:18 GMT
Sylvain Wallez wrote:
> So in essence, the get() method on object model, which can be a special 
> subclass of HashMap would be:
> 
> Object get(Object name) {
>     // call the regular Map get method
>     Object result = super.get(name);
>     if (result instanceof Module) {
>         // Dereference the module
>         return ((Module)result).get();
>     } else {
>         return result;
>     }
> }
> 
Agreed - now we're talking about the same thing again :)

Carsten

-- 
Carsten Ziegeler - Open Source Group, S&N AG
http://www.s-und-n.de
http://www.osoco.org/weblogs/rael/

Mime
View raw message