getPropertyResolver method

  1. @protected
ConfigurablePropertyResolver getPropertyResolver()

Access to the Property Resolver

Returns the ConfigurablePropertyResolver associated with this environment. The resolver is responsible for:

  • Resolving property values from the configured MutablePropertySources.
  • Performing type conversion for property values.
  • Handling placeholder substitution in strings.

Example

final resolver = getPropertyResolver();
final port = resolver.getProperty('server.port', int);

Notes

  • Marked @protected: intended for subclasses and framework internals.
  • The resolver instance is initialized when the environment is created.

Implementation

@protected
ConfigurablePropertyResolver getPropertyResolver() => _propertyResolver;