i am using cocoon 2.0.4 (and looking in the mailinglist on how to use this componentmanager)


Jorg Heymans wrote:


i'ld like a central config file. Right now i had a myconfig.properties and the cocoon.xconf defaultsmetamodule where i stored configuration values for my application.
I am now trying to eliminate duplication and merge everything into cocoon.xconf.


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

tnx
jorg

Reinhard Poetz wrote:

From: Jorg Heymans


Hi,

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 properties 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. HTH

--
Reinhard

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to