Class QuarkusSystemPropertyUtil

java.lang.Object
io.clonecloudstore.common.standard.system.SystemPropertyUtil
io.clonecloudstore.common.quarkus.properties.QuarkusSystemPropertyUtil

public final class QuarkusSystemPropertyUtil extends SystemPropertyUtil
A collection of utility methods to retrieve and parse the values of the Java system properties and from ConfigProvider.
  • Method Details

    • getStringConfig

      public static String getStringConfig(String key)
      Returns:
      the associated value or null if the key is not in the Configuration
    • getLongConfig

      public static Long getLongConfig(String key)
      Returns:
      the associated value or null if the key is not in the Configuration
    • getIntegerConfig

      public static Integer getIntegerConfig(String key)
      Returns:
      the associated value or null if the key is not in the Configuration
    • getBooleanConfig

      public static Boolean getBooleanConfig(String key)
      Returns:
      the associated value or null if the key is not in the Configuration
    • getStringConfig

      public static String getStringConfig(String key, String defaultValue)
      Returns:
      the associated value or default one if the key is not in the Configuration
    • getIntegerConfig

      public static int getIntegerConfig(String key, int defaultValue)
      Returns:
      the associated value or default one if the key is not in the Configuration
    • getLongConfig

      public static long getLongConfig(String key, long defaultValue)
      Returns:
      the associated value or default one if the key is not in the Configuration
    • getBooleanConfig

      public static boolean getBooleanConfig(String key, boolean defaultValue)
      Returns:
      the associated value or default one if the key is not in the Configuration
    • getStringConfig

      public static String getStringConfig(String key, String originalValue, String defaultValue)
      Returns:
      if originalValue is null, the associated value or default one if the key is not in the Configuration, or if not null the originalValue itself
    • getIntegerConfig

      public static int getIntegerConfig(String key, Integer originalValue, int defaultValue)
      Returns:
      the associated value or default one if the key is not in the Configuration
    • getLongConfig

      public static long getLongConfig(String key, Long originalValue, long defaultValue)
      Returns:
      the associated value or default one if the key is not in the Configuration
    • getBooleanConfig

      public static boolean getBooleanConfig(String key, Boolean originalValue, boolean defaultValue)
      Returns:
      the associated value or default one if the key is not in the Configuration