Package org.springframework.util
Interface StringValueResolver
- All Known Implementing Classes:
EmbeddedValueResolver
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 String
resolveStringValue(String strVal)
Resolve the given String value, for example parsing placeholders.
Method Detail
resolveStringValue
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
null
when 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