public final class SystemProperties extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
getBooleanClassProperty(Class<?> targetClass,
String classPropertyName) |
static boolean |
getBooleanClassProperty(Class<?> targetClass,
String classPropertyName,
boolean defaultValue) |
static String |
getClassProperty(Class<?> targetClass,
String classPropertyName) |
static String |
getClassProperty(Class<?> targetClass,
String classPropertyName,
String defaultValue)
Gets the value of a "class property".
|
static int |
getIntegerClassProperty(Class<?> targetClass,
String classPropertyName,
int defaultValue) |
public static boolean getBooleanClassProperty(Class<?> targetClass, String classPropertyName)
"true"getClassProperty(Class, String, String)public static boolean getBooleanClassProperty(Class<?> targetClass, String classPropertyName, boolean defaultValue)
"true", or, if that
class property is not set, defaultValuegetClassProperty(Class, String, String)public static int getIntegerClassProperty(Class<?> targetClass, String classPropertyName, int defaultValue)
NumberFormatException - The value of the class property could be parsed as an integergetClassProperty(Class, String, String),
Integer.parseInt(String)@Nullable public static String getClassProperty(Class<?> targetClass, String classPropertyName)
nullgetClassProperty(Class, String, String)@Nullable public static String getClassProperty(Class<?> targetClass, String classPropertyName, @Nullable String defaultValue)
A class property is configured by a set of system properties (decreasing priority):
.classPropertyName.classPropertyNameCopyright © 2024. All rights reserved.