Re: [configuration] Feature request key name variable interpolation

2011-01-25 Thread Mike Power
On 01/22/2011 08:31 AM, Oliver Heger wrote: Hello Mike, Am 21.01.2011 06:48, schrieb Mike Power: Consider the following code: public class Main { public static void main(String[] args) { Configuration conf = new BaseConfiguration(); conf.setProperty("interpolationdone", "true"); conf.setPrope

Re: [configuration] Feature request key name variable interpolation

2011-01-22 Thread Oliver Heger
Hello Mike, Am 21.01.2011 06:48, schrieb Mike Power: Consider the following code: public class Main { public static void main(String[] args) { Configuration conf = new BaseConfiguration(); conf.setProperty("interpolationdone", "true"); conf.setProperty("interpolation${interpolated}", "false");

Re: [configuration] Feature request key name variable interpolation

2011-01-21 Thread Emmanuel Bourg
Hi Mike, Did you consider using a sub configuration? You could do something like this: String current = conf.getString("currentServer"); Configuration server = conf.subset("server." + current); server.getString("host"); server.getInt("port"); Emmanuel Bourg smime.p7s Des

[configuration] Feature request key name variable interpolation

2011-01-20 Thread Mike Power
Consider the following code: public class Main { public static void main(String[] args) { Configuration conf = new BaseConfiguration(); conf.setProperty("interpolationdone", "true"); conf.setProperty("interpolation${interpolated}", "false"); conf.setProperty("interpolated", "