接口 StringValueResolver
- 所有已知实现类:
EmbeddedValueResolver
public interface StringValueResolver
Simple strategy interface for resolving a String value. Used byConfigurableBeanFactory
.
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 String
resolveStringValue(String strVal)
Resolve the given String value, for example parsing placeholders.
方法详细资料
resolveStringValue
String resolveStringValue(String strVal)
Resolve the given String value, for example parsing placeholders.- 参数:
strVal
- the original String value (nevernull
)- 返回:
- 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) - 抛出:
IllegalArgumentException
- in case of an unresolvable String value