Class EmbeddedValueResolver

java.lang.Object
org.springframework.beans.factory.config.EmbeddedValueResolver
All Implemented Interfaces:
StringValueResolver

public class EmbeddedValueResolver extends Object implements StringValueResolver
StringValueResolver adapter for resolving placeholders and expressions against a ConfigurableBeanFactory.

Note that this adapter resolves expressions as well, in contrast to the ConfigurableBeanFactory.resolveEmbeddedValue(java.lang.String) method. The BeanExpressionContext used is for the plain bean factory, with no scope specified for any contextual objects to access.

Since:
4.3
Author:
Juergen Hoeller
See Also:
  • Constructor Details

  • Method Details

    • resolveStringValue

      @Nullable public String resolveStringValue(String strVal)
      Description copied from interface: StringValueResolver
      Resolve the given String value, for example parsing placeholders.
      Specified by:
      resolveStringValue in interface StringValueResolver
      Parameters:
      strVal - the original String value (never null)
      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)