@Overridepublicvoidupdated(Dictionary properties) { try { if (null == properties) { LOG.info("Configuration updated with null properties, use default."); return; }
Objectobject= properties.get(FLAG); if (null == object) { LOG.info("Configuration updated with null properties, use default."); return; }
StringvalueFromConfigFile= (String) object; if ("TRUE".equalsIgnoreCase(valueFromConfigFile)) { flag = true; } elseif ("FALSE".equalsIgnoreCase(valueFromConfigFile)) { flag = false; } else { LOG.error("Invalid value {} from config file, use default true.", valueFromConfigFile); flag = true; }