StringValueResolver typedef
A function that resolves the ${...} placeholders in a string and
returns the result.
The bean factory runs its resolvers over every @Value expression
before evaluating it. An application context adds one that reads the
environment, so you add one yourself only for a factory used without a
context, or to support another placeholder syntax.
// A bare factory: @Value placeholders come from this environment.
factory.addEmbeddedValueResolver(env.resolveRequiredPlaceholders);
Spring (Java):
factory.addEmbeddedValueResolver(env::resolveRequiredPlaceholders);
Implementation
typedef StringValueResolver = String Function(String value);