public PropertiesWatchDog(String filename) { properties = PropertiesLoader.loadProperties(filename); watchdog = new FileWatchdog(filename) { protected void doOnChange() { String oldProps = properties.toString(); properties = PropertiesLoader.loadProperties(filename); LOG.info( "method:watch,desc:loadProperties,oldProps:" + oldProps + ",newProps:" + properties); } }; }