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.
Simple strategy interface for resolving a String value.
Used by
ConfigurableBeanFactory
.- Since:
- 2.5
- Author:
- Juergen Hoeller
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionresolveStringValue
(String strVal) Resolve the given String value, for example parsing placeholders.
-
Method Details
-
resolveStringValue
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
-