Class Environment


  • @Supervised
    public final class Environment
    extends java.lang.Object
    Holder of environment variables and system properties, which can be injected as a dependency.
    • Constructor Summary

      Constructors 
      Constructor Description
      Environment()
      Default constructor initializing the Environment with none CLI args
      Environment​(java.lang.String[] args)
      Constructor initializing the Environment with customised CLI args, and the currently detected envrironment variables, and Java properties.
      Environment​(java.lang.String[] args, java.util.Map<java.lang.String,​java.lang.String> environmentVars, java.util.Properties envProps)
      Constructor initializing the Environment with customised CLI args, envrironment variables and Java properties.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Environment

        public Environment()
        Default constructor initializing the Environment with none CLI args
      • Environment

        public Environment​(java.lang.String[] args)
        Constructor initializing the Environment with customised CLI args, and the currently detected envrironment variables, and Java properties.
        Parameters:
        args - The CLI args (typically) passed to the Java application.
      • Environment

        public Environment​(java.lang.String[] args,
                           java.util.Map<java.lang.String,​java.lang.String> environmentVars,
                           java.util.Properties envProps)
        Constructor initializing the Environment with customised CLI args, envrironment variables and Java properties.
        Parameters:
        args - The CLI args (typically) passed to the Java application.
        environmentVars - The environment variables (typically) available on the system.
        envProps - The Java environment properties that (typically) have been currently set.