Hi,
I'm using Apache Commons Configuration library to store my app properties.
I can monitor changes of property file using FileChangedReloadingStrategy
and it works perfectly.
What I would like to do is to trigger configurationChanged
event of ConfigurationListener
when property file is changed.
This case works if I will try to get a property from my code
directory = MyConfiguration.getInstance().getString("directory");
this line will trigger configurationChanged
. But I need this event to be triggered when FileChangedReloadingStrategy
catches changes in file without doing redundant calls.
Thanks.