public final class ConfigurationUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static Integer |
tryGetIntegerProperty(String key)
Try to retrieve a system property and returns null if SecurityManager blocks it.
|
static Integer |
tryGetIntegerProperty(String key,
Integer defaultValue)
Try to retrieve a system property and returns the defaultValue if SecurityManager blocks it.
|
static String |
tryGetProperty(String key)
Try to retrieve a system property and returns null if SecurityManager blocks it.
|
static String |
tryGetProperty(String key,
String defaultValue)
Try to retrieve a system property and returns the defaultValue if SecurityManager blocks it.
|
public static String tryGetProperty(String key)
key - Name of the system property to get the string for.public static String tryGetProperty(String key, String defaultValue)
key - Name of the system property to get the string for.defaultValue - Value to be returned on unsuccessful operation or if the propety is not set.public static Integer tryGetIntegerProperty(String key)
key - Name of the system property to get the integer for.public static Integer tryGetIntegerProperty(String key, Integer defaultValue)
key - Name of the system property to get the integer for.defaultValue - Value to be returned on unsuccessful operation or if the propety is not set.Copyright © 2018 JBoss by Red Hat. All rights reserved.