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
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;
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 :
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());*