public final class ConfigurationUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
formatEnvironmentVariable(String key)
Format a key given system property key as an environment variable, e.g.:
custom.aerogear.apns.push.host would become CUSTOM_AEROGEAR_APNS_PUSH_HOST
|
static Integer |
tryGetGlobalIntegerProperty(String key)
Same as `tryGetGlobalIntegerProperty` but with null as implicit default value
|
static Integer |
tryGetGlobalIntegerProperty(String key,
Integer defaultValue)
Get a global integer property.
|
static String |
tryGetGlobalProperty(String key)
Same as `tryGetGlobalProperty` but with null as implicit default value
|
static String |
tryGetGlobalProperty(String key,
String defaultValue)
Get a global string property.
|
public static String formatEnvironmentVariable(String key)
key - String System Property Keypublic static String tryGetGlobalProperty(String key, String defaultValue)
key - Name of the variabledefaultValue - Returned if neither env var nor system property are definedpublic static String tryGetGlobalProperty(String key)
key - Variable namepublic static Integer tryGetGlobalIntegerProperty(String key, Integer defaultValue)
key - Name of the variabledefaultValue - Returned if neither env var nor system property are definedCopyright © 2019 JBoss by Red Hat. All rights reserved.