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 Type
    Method
    Description
     
    int
    A 0 based index representing the priority of the environment relative to other active environments.
    of(String name, int priority)
    Creates 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

      static ActiveEnvironment of(String name, int priority)
      Creates a new active environment for the given arguments.
      Parameters:
      name - The environment name
      priority - The priority
      Returns:
      The active environment