setEnvironment abstract method
void
setEnvironment(
- Environment environment
Sets the Environment
that this component runs in.
This method is called by the framework with a fully configured Environment instance that contains all active property sources and profile information.
Parameters:
environment
: The Environment instance for this application context
Example:
@override
void setEnvironment(Environment environment) {
_environment = environment;
// Validate required configuration
_validateConfiguration();
}
Implementation
void setEnvironment(Environment environment);