cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jorg Heymans>
Subject Re: access defaultsmetamodule variables from java code
Date Thu, 30 Oct 2003 14:37:25 GMT
i'ld like a central config file. Right now i had a 
and the cocoon.xconf defaultsmetamodule where i stored configuration 
values for my application.
I am now trying to eliminate duplication and merge everything into 

How would i use the componentmanager to get to the defaultsmetamodule 
vars? any pointers?


Reinhard Poetz wrote:

> From: Jorg Heymans
>>I asked a similar question a few months ago without any luck. 
>>This issue 
>>has now raised its head again :
>>Does the objectmodel allow to access variables from the 
>>defaultsmetamodule in java code (eg transformers, 
>>generators...)? I would like to have a global defined in here 
>>that I can use in the 
>>sitemap AND in code, without having to pass it as a parameter 
>>all the time.
>>Basically , I'm hoping to avoid following each time my 
>>transformer is used :
>><map:transform type="mycustom" >
>>             <map:parameter name="dir" 
>>value="{defaults:directory}"/> </map:transform>
>>One could argue that if i need this, then there is something 
>>wrong with 
>>my design. Or maybe i shouldn't use cocoon.xconf as a plain 
>>file and put this stuff in plain properties?
> I'm not sure IIUC what you want to do, but you can call InputModules
> from within your transformer too using the ComponentManager. 
> --
> Reinhard 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message