/** * Convert the given property from the properties source to the value * which should be applied. * <p>The default implementation calls {@link #convertPropertyValue(String)}. * @param propertyName the name of the property that the value is defined for * @param propertyValue the original value from the properties source * @return the converted value, to be used for processing * @see #convertPropertyValue(String) */ protected String convertProperty(String propertyName, String propertyValue) { return convertPropertyValue(propertyValue); }
/** * Convert the given property from the properties source to the value * which should be applied. * <p>The default implementation calls {@link #convertPropertyValue(String)}. * @param propertyName the name of the property that the value is defined for * @param propertyValue the original value from the properties source * @return the converted value, to be used for processing * @see #convertPropertyValue(String) */ protected String convertProperty(String propertyName, String propertyValue) { return convertPropertyValue(propertyValue); }
/** * Convert the given property from the properties source to the value * which should be applied. * <p>The default implementation calls {@link #convertPropertyValue(String)}. * @param propertyName the name of the property that the value is defined for * @param propertyValue the original value from the properties source * @return the converted value, to be used for processing * @see #convertPropertyValue(String) */ protected String convertProperty(String propertyName, String propertyValue) { return convertPropertyValue(propertyValue); }
/** * Convert the given property from the properties source to the value * which should be applied. * <p>The default implementation calls {@link #convertPropertyValue(String)}. * @param propertyName the name of the property that the value is defined for * @param propertyValue the original value from the properties source * @return the converted value, to be used for processing * @see #convertPropertyValue(String) */ protected String convertProperty(String propertyName, String propertyValue) { return convertPropertyValue(propertyValue); }
/** * Convert the given merged properties, converting property values * if necessary. The result will then be processed. * <p>Default implementation will invoke <code>convertPropertyValue</code> * for each property value, replacing the original with the converted value. * @see #convertPropertyValue * @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 = convertPropertyValue(propertyValue); if (!ObjectUtils.nullSafeEquals(propertyValue, convertedValue)) { props.setProperty(propertyName, convertedValue); } } }