Class ParamEnvUtil

java.lang.Object
io.vertigo.core.param.ParamEnvUtil

public final class ParamEnvUtil extends Object
Utility class for retrieving parameters from the environment or system. Can be used everywhere the ParamManager has not been loaded yet.
  • Method Details

    • getParam

      public static Optional<Param> getParam(String paramName, String paramValue, Optional<ParamManager> paramManagerOpt)
      Retrieves a parameter based on the specified name, value, and an optional ParamManager.
      Parameters:
      paramName - The name of the parameter
      paramValue - The value of the parameter
      paramManagerOpt - An optional ParamManager
      Returns:
      An Optional containing the retrieved Param, if available
      Throws:
      IllegalArgumentException - If the parameter is not found in either the ParamManager or the system and environment