Package io.micronaut.context.env
Interface ActiveEnvironment
public interface ActiveEnvironment
An environment that is active for the current execution
of the application.
- Since:
- 1.2.0
- Author:
- James Kleeh
-
Method Summary
Modifier and TypeMethodDescriptiongetName()intA 0 based index representing the priority of the environment relative to other active environments.static ActiveEnvironmentCreates a new active environment for the given arguments.
-
Method Details
-
getName
String getName()- Returns:
- The name of the environment
-
getPriority
int getPriority()A 0 based index representing the priority of the environment relative to other active environments.- Returns:
- The priority
-
of
Creates a new active environment for the given arguments.- Parameters:
name- The environment namepriority- The priority- Returns:
- The active environment
-