Search in sources :

Example 1 with DefaultEnvironment

use of io.micronaut.context.env.DefaultEnvironment in project micronaut-core by micronaut-projects.

the class DefaultApplicationContext method startEnvironment.

/**
 * Start the environment.
 */
protected void startEnvironment() {
    Environment defaultEnvironment = getEnvironment();
    defaultEnvironment.start();
    registerSingleton(Environment.class, defaultEnvironment);
}
Also used : Environment(io.micronaut.context.env.Environment) DefaultEnvironment(io.micronaut.context.env.DefaultEnvironment) CachedEnvironment(io.micronaut.context.env.CachedEnvironment)

Aggregations

CachedEnvironment (io.micronaut.context.env.CachedEnvironment)1 DefaultEnvironment (io.micronaut.context.env.DefaultEnvironment)1 Environment (io.micronaut.context.env.Environment)1