Re: [Configuration] Problem in using FileChangedReloadingStrategy events ...

2011-02-15 Thread Oliver Heger
Am 15.02.2011 09:37, schrieb Moein Enayati: Dear Ralph Thanks a lot . Now I can use these constants to handle my scenario. *but as a comment *, I can't find any constant named *EVENT_CONFIG_CHANGED*in * AbstractFileConfiguration* ! the hole EVENT-Constants I can find are : AbstractFileConfigur

Re: [Configuration] Problem in using FileChangedReloadingStrategy events ...

2011-02-15 Thread Moein Enayati
Dear Ralph Thanks a lot . Now I can use these constants to handle my scenario. *but as a comment *, I can't find any constant named *EVENT_CONFIG_CHANGED*in * AbstractFileConfiguration* ! the hole EVENT-Constants I can find are : AbstractFileConfiguration.EVENT_ADD_PROPERTY = 1; AbstractFileConf

Re: [Configuration] Problem in using FileChangedReloadingStrategy events ...

2011-02-15 Thread Ralph Goers
Yes, you've stumbled on one of the uglinesses of Commons Configuration. We should convert these to an Enum in the experimental branch. The particular event you encountered is defined in AbstractFileConfiguration. /** Constant for the configuration reload event.*/ public static final in

[Configuration] Problem in using FileChangedReloadingStrategy events ...

2011-02-14 Thread Moein Enayati
Dear All I’ve just have an XMLConfiguration object initialized like this : * * *this.xmlConfig = new XMLConfiguration("preferences.xml");* *this.xmlConfig.setAutoSave(true);* *this.xmlConfig.setReloadingStrategy(new FileChangedReloadingStrategy());*