Class QuarkusSystemPropertyUtil
java.lang.Object
io.clonecloudstore.common.standard.system.SystemPropertyUtil
io.clonecloudstore.common.quarkus.properties.QuarkusSystemPropertyUtil
A collection of utility methods to retrieve and parse the values of the Java
system properties and from ConfigProvider.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.clonecloudstore.common.standard.system.SystemPropertyUtil
SystemPropertyUtil.Platform
-
Method Summary
Modifier and TypeMethodDescriptionstatic Boolean
getBooleanConfig
(String key) static boolean
getBooleanConfig
(String key, boolean defaultValue) static boolean
getBooleanConfig
(String key, Boolean originalValue, boolean defaultValue) static Integer
getIntegerConfig
(String key) static int
getIntegerConfig
(String key, int defaultValue) static int
getIntegerConfig
(String key, Integer originalValue, int defaultValue) static Long
getLongConfig
(String key) static long
getLongConfig
(String key, long defaultValue) static long
getLongConfig
(String key, Long originalValue, long defaultValue) static String
getStringConfig
(String key) static String
getStringConfig
(String key, String defaultValue) static String
getStringConfig
(String key, String originalValue, String defaultValue)
-
Method Details
-
getStringConfig
- Returns:
- the associated value or null if the key is not in the Configuration
-
getLongConfig
- Returns:
- the associated value or null if the key is not in the Configuration
-
getIntegerConfig
- Returns:
- the associated value or null if the key is not in the Configuration
-
getBooleanConfig
- Returns:
- the associated value or null if the key is not in the Configuration
-
getStringConfig
- Returns:
- the associated value or default one if the key is not in the Configuration
-
getIntegerConfig
- Returns:
- the associated value or default one if the key is not in the Configuration
-
getLongConfig
- Returns:
- the associated value or default one if the key is not in the Configuration
-
getBooleanConfig
- Returns:
- the associated value or default one if the key is not in the Configuration
-
getStringConfig
- 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
- Returns:
- the associated value or default one if the key is not in the Configuration
-
getLongConfig
- Returns:
- the associated value or default one if the key is not in the Configuration
-
getBooleanConfig
- Returns:
- the associated value or default one if the key is not in the Configuration
-