接口 StringValueResolver
- 所有已知实现类:
EmbeddedValueResolver
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
@FunctionalInterface 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
@Nullable 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