/** * Convert the given merged properties, converting property values * if necessary. The result will then be processed. * <p>The default implementation will invoke {@link #convertPropertyValue} * for each property value, replacing the original with the converted value. * @param props the Properties to convert * @see #processProperties */ protected void convertProperties(Properties props) { Enumeration<?> propertyNames = props.propertyNames(); while (propertyNames.hasMoreElements()) { String propertyName = (String) propertyNames.nextElement(); String propertyValue = props.getProperty(propertyName); String convertedValue = convertProperty(propertyName, propertyValue); if (!ObjectUtils.nullSafeEquals(propertyValue, convertedValue)) { props.setProperty(propertyName, convertedValue); } } }
/** * Convert the given merged properties, converting property values * if necessary. The result will then be processed. * <p>The default implementation will invoke {@link #convertPropertyValue} * for each property value, replacing the original with the converted value. * @param props the Properties to convert * @see #processProperties */ protected void convertProperties(Properties props) { Enumeration<?> propertyNames = props.propertyNames(); while (propertyNames.hasMoreElements()) { String propertyName = (String) propertyNames.nextElement(); String propertyValue = props.getProperty(propertyName); String convertedValue = convertProperty(propertyName, propertyValue); if (!ObjectUtils.nullSafeEquals(propertyValue, convertedValue)) { props.setProperty(propertyName, convertedValue); } } }
/** * Convert the given merged properties, converting property values * if necessary. The result will then be processed. * <p>The default implementation will invoke {@link #convertPropertyValue} * for each property value, replacing the original with the converted value. * @param props the Properties to convert * @see #processProperties */ protected void convertProperties(Properties props) { Enumeration<?> propertyNames = props.propertyNames(); while (propertyNames.hasMoreElements()) { String propertyName = (String) propertyNames.nextElement(); String propertyValue = props.getProperty(propertyName); String convertedValue = convertProperty(propertyName, propertyValue); if (!ObjectUtils.nullSafeEquals(propertyValue, convertedValue)) { props.setProperty(propertyName, convertedValue); } } }
/** * Convert the given merged properties, converting property values * if necessary. The result will then be processed. * <p>The default implementation will invoke {@link #convertPropertyValue} * for each property value, replacing the original with the converted value. * @param props the Properties to convert * @see #processProperties */ protected void convertProperties(Properties props) { Enumeration<?> propertyNames = props.propertyNames(); while (propertyNames.hasMoreElements()) { String propertyName = (String) propertyNames.nextElement(); String propertyValue = props.getProperty(propertyName); String convertedValue = convertProperty(propertyName, propertyValue); if (!ObjectUtils.nullSafeEquals(propertyValue, convertedValue)) { props.setProperty(propertyName, convertedValue); } } }