getSupportingEnvironment method

  1. @override
AbstractEnvironment getSupportingEnvironment()
override

Returns the Environment that supports this component or context.

The supporting environment provides access to property sources, active and default profiles, and configuration data that influence how the current context or container is initialized.

This environment is typically used to resolve placeholders, load environment-specific settings, or determine profile-based activation before the container refresh phase.

Example:

final env = applicationContext.getSupportingEnvironment();
final port = env.getProperty('server.port');

Returns the Environment instance backing this context. Never null.

Implementation

@override
AbstractEnvironment getSupportingEnvironment() => ApplicationEnvironment();