cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Royal <pro...@apache.org>
Subject Re: [Fwd: cocoon.xconf in subdirectory]
Date Mon, 12 Aug 2002 14:27:42 GMT
On Monday 12 August 2002 10:08 am, Nicola Ken Barozzi wrote:
> Carsten Ziegeler wrote:
> > AFAIK it's not possible.
>
> Ain't there a merge stuff for Configuration somewhere now in Avalon?

yes. 

http://jakarta.apache.org/avalon/excalibur/configuration/configuration-merger.html

Two xconf files, cocoon.xconf and cocoon-user.xconf. cocoon.xconf is the 
"base" and cocoon-user.xconf is the "layer". When creating the Configuration 
for the primary container, merge the base and layer with 

http://jakarta.apache.org/avalon/excalibur/configuration/api/org/apache/excalibur/configuration/merged/ConfigurationMerger.html

There is also a ConfigurationSplitter, which takes a merged configuration and 
a base and computes what the layer would be (good for a config tool that 
presents the original config to the user, they modify, and only save the 
differences.

-pete

-- 
peter royal -> proyal@apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message