resolveNestedPlaceholders method

  1. @protected
String resolveNestedPlaceholders(
  1. String value
)

Resolve nested placeholders within a given value.

This method inspects the input string and replaces placeholders using the configured PropertyPlaceholderHelper. It differentiates between two modes:

If the input value is empty, it is returned as-is without processing.

Example

final result = resolveNestedPlaceholders('Hello \${user.name}');
print(result); // "Hello Alice" (assuming user.name=Alice)

Implementation

@protected
String resolveNestedPlaceholders(String value) {
  if (value.isEmpty) {
    return value;
  }
  return (_ignoreUnresolvableNestedPlaceholders ? resolvePlaceholders(value) : resolveRequiredPlaceholders(value));
}