cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carsten Ziegeler <>
Subject Re: exposing cocoon 2.2 settings in jxtemplate object model
Date Wed, 23 Aug 2006 09:51:33 GMT
Leszek Gawron wrote:
> Done. Another question: I would like to expose Settings to template as 
> map (so we can loose that java like settings.getProperty() syntax). What 
> I am worried about is the fact that this map needs to be recreated for 
> every request. Maybe Settings could directly implement Map interface? Or 
> if this breaks the Settings interface design provide Settings.asMap() 
> that is built during settings reading and never more.
Would properties also work? So we could add a settings.getProperties()
method? - I need that one for the spring stuff, so perhaps we can share
it. If properties do not work, asMap() would also do it. The settings
object is read only after it is created so we can create the
properties/map once inside the settings implementation.

Carsten Ziegeler - Open Source Group, S&N AG

View raw message