Browse Source

Polish ConfigurablePropertyResolver Javadoc

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4405 50f2f4bb-b051-0410-bef5-90022cba6387
pull/1/merge
Chris Beams 15 years ago
parent
commit
3d91946b73
  1. 12
      org.springframework.core/src/main/java/org/springframework/core/env/AbstractPropertyResolver.java
  2. 11
      org.springframework.core/src/main/java/org/springframework/core/env/ConfigurablePropertyResolver.java

12
org.springframework.core/src/main/java/org/springframework/core/env/AbstractPropertyResolver.java vendored

@ -104,14 +104,26 @@ public abstract class AbstractPropertyResolver implements ConfigurablePropertyRe
return value; return value;
} }
/**
* {@inheritDoc} The default is "${".
* @see org.springframework.util.SystemPropertyUtils#PLACEHOLDER_PREFIX
*/
public void setPlaceholderPrefix(String placeholderPrefix) { public void setPlaceholderPrefix(String placeholderPrefix) {
this.placeholderPrefix = placeholderPrefix; this.placeholderPrefix = placeholderPrefix;
} }
/**
* {@inheritDoc} The default is "}".
* @see org.springframework.util.SystemPropertyUtils#PLACEHOLDER_SUFFIX
*/
public void setPlaceholderSuffix(String placeholderSuffix) { public void setPlaceholderSuffix(String placeholderSuffix) {
this.placeholderSuffix = placeholderSuffix; this.placeholderSuffix = placeholderSuffix;
} }
/**
* {@inheritDoc} The default is ":".
* @see org.springframework.util.SystemPropertyUtils#VALUE_SEPARATOR
*/
public void setValueSeparator(String valueSeparator) { public void setValueSeparator(String valueSeparator) {
this.valueSeparator = valueSeparator; this.valueSeparator = valueSeparator;
} }

11
org.springframework.core/src/main/java/org/springframework/core/env/ConfigurablePropertyResolver.java vendored

@ -44,10 +44,21 @@ public interface ConfigurablePropertyResolver extends PropertyResolver {
*/ */
void setConversionService(ConversionService conversionService); void setConversionService(ConversionService conversionService);
/**
* Set the prefix that placeholders replaced by this resolver must begin with.
*/
void setPlaceholderPrefix(String placeholderPrefix); void setPlaceholderPrefix(String placeholderPrefix);
/**
* Set the suffix that placeholders replaced by this resolver must end with.
*/
void setPlaceholderSuffix(String placeholderSuffix); void setPlaceholderSuffix(String placeholderSuffix);
/**
* Specify the separating character between the placeholders replaced by this
* resolver and their associated default value, or {@code null} if no such
* special character should be processed as a value separator.
*/
void setValueSeparator(String valueSeparator); void setValueSeparator(String valueSeparator);
/** /**

Loading…
Cancel
Save