/** * Create a new DynamicProperty with a given property name. * * @param propName the name of the property */ private DynamicProperty(String propName) { this.propName = propName; updateValue(); }
/** * Create a new DynamicProperty with a given property name. * * @param propName the name of the property */ private DynamicProperty(String propName) { this.propName = propName; updateValue(); }
private static boolean updateProperty(String propName, Object value) { DynamicProperty prop = ALL_PROPS.get(propName); if (prop != null && prop.updateValue(value)) { prop.notifyCallbacks(); return true; } return false; }
private static boolean updateAllProperties() { boolean changed = false; for (DynamicProperty prop : ALL_PROPS.values()) { if (prop.updateValue()) { prop.notifyCallbacks(); changed = true; } } return changed; }
private static boolean updateProperty(String propName, Object value) { DynamicProperty prop = ALL_PROPS.get(propName); if (prop != null && prop.updateValue(value)) { prop.notifyCallbacks(); return true; } return false; }
private static boolean updateAllProperties() { boolean changed = false; for (DynamicProperty prop : ALL_PROPS.values()) { if (prop.updateValue()) { prop.notifyCallbacks(); changed = true; } } return changed; }
private boolean updateValue() { String newValue; try { if (dynamicPropertySupportImpl != null) { newValue = dynamicPropertySupportImpl.getString(propName); } else { return false; } } catch (Exception e) { e.printStackTrace(); logger.error("Unable to update property: " + propName, e); return false; } return updateValue(newValue); }
private boolean updateValue() { String newValue; try { if (dynamicPropertySupportImpl != null) { newValue = dynamicPropertySupportImpl.getString(propName); } else { return false; } } catch (Exception e) { e.printStackTrace(); logger.error("Unable to update property: " + propName, e); return false; } return updateValue(newValue); }
prop.updateValue(defaultValue);
prop.updateValue(defaultValue);