Package org.springframework.util
Interface StringValueResolver
- All Known Implementing Classes:
EmbeddedValueResolver
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface StringValueResolver
Simple strategy interface for resolving a String value. Used byConfigurableBeanFactory.- Since:
- 2.5
- Author:
- Juergen Hoeller
- See Also:
ConfigurableBeanFactory.resolveAliases(org.springframework.util.StringValueResolver),BeanDefinitionVisitor(StringValueResolver),PropertyPlaceholderConfigurer
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringresolveStringValue(String strVal)Resolve the given String value, for example parsing placeholders.
Method Detail
resolveStringValue
@Nullable String resolveStringValue(String strVal)
Resolve the given String value, for example parsing placeholders.- Parameters:
strVal- the original String value (nevernull)- Returns:
- the resolved String value (may be
nullwhen resolved to a null value), possibly the original String value itself (in case of no placeholders to resolve or when ignoring unresolvable placeholders) - Throws:
IllegalArgumentException- in case of an unresolvable String value