Jason van Zyl wrote:

>Hi,
>
>Just wondering what the standard way of modifying a configuration at
>runtime is?
>
>Or if this isn't generally practiced how do you add new elements to
>DefaultConfiguration or CascadingConfiguration. The Javadocs for
>setValue(String s) aren't exactly clear as to what a value is? Is this
>an XML fragment?
>

You can add new elements to a CascadingConfiguration by creating a new 
top level configuration (containing your new data), and creating a new 
CascadingConfiguration using the new configuration and the prev. config 
as parameters.  The new configuration instance will take prioprity over 
the old configurationinstance.  Just for reference, a 
CascadingConfiguration is a Configuration instance so you can use this 
as the base of a new cascading config.

Steve.

>
>  
>

-- 

Stephen J. McConnell

OSM SARL
digital products for a global economy
mailto:[EMAIL PROTECTED]
http://www.osm.net




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

Reply via email to