@Override protected String resolveDefault(String name) { // Because we may have multiple instances, we try an instance-specific default before falling back to a general // property level default String value = super.resolveDefault(this.instanceKeyPrefix + name); return value == null ? super.resolveDefault(this.defaultKeyPrefix + name) : value; }
@Override protected String resolveDefault(String name) { // Because we may have multiple instances, we try an instance-specific default before falling back to a general // property level default String value = super.resolveDefault(this.instanceKeyPrefix + name); return value == null ? super.resolveDefault(this.defaultKeyPrefix + name) : value; }
/** * Applies default overrides to the initial state. * * @param state * the state * @throws IOException * Signals that an I/O exception has occurred. */ protected void applyDefaultOverrides(PropertyBackedBeanState state) throws IOException { for (String name : state.getPropertyNames()) { String override = resolveDefault(name); if (override != null) { state.setProperty(name, override); } } }
/** * Applies default overrides to the initial state. * * @param state * the state * @throws IOException * Signals that an I/O exception has occurred. */ protected void applyDefaultOverrides(PropertyBackedBeanState state) throws IOException { for (String name : state.getPropertyNames()) { String override = resolveDefault(name); if (override != null) { state.setProperty(name, override); } } }