Top Description Methods
org.springframework.util

public Interface StringValueResolver

Annotations
@FunctionalInterface
Imports
org.springframework.lang.Nullable

Simple strategy interface for resolving a String value. Used by org.springframework.beans.factory.config.ConfigurableBeanFactory.
Author
Juergen Hoeller
Since
2.5
See Also
org.springframework.beans.factory.config.ConfigurableBeanFactory#resolveAliases, org.springframework.beans.factory.config.BeanDefinitionVisitor#BeanDefinitionVisitor(StringValueResolver)

Method Summary

Modifier and TypeMethod and Description
public String

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)
resolveStringValue
(String
the original String value (never null)
strVal
)

Resolve the given String value, for example parsing placeholders.

Method Detail

resolveStringValueback to summary
public String resolveStringValue(String strVal)

Resolve the given String value, for example parsing placeholders.

Parameters
strVal:String

the original String value (never null)

Returns:String

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)

Annotations
@Nullable
Exceptions
IllegalArgumentException:
in case of an unresolvable String value