Package org.opennms.core.sysprops
Class SystemProperties
- java.lang.Object
-
- org.opennms.core.sysprops.SystemProperties
-
public class SystemProperties extends Object
Utility to extract system properties, similar to Integer.getInteger. This class allows to distinguish between a none present value and a malformed value. In case of the latter a log message is produced. Integer.getInteger would just return the defaultValue without informing the user and can therefor lead to hard to find configuration problems.
-
-
Constructor Summary
Constructors Constructor Description SystemProperties()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BooleangetBooleanWithDefaultAsTrue(String name)static IntegergetInteger(String propertyName)static IntegergetInteger(String propertyName, int defaultValue)static IntegergetInteger(String propertyName, Integer defaultValue)static LonggetLong(String propertyName)static LonggetLong(String propertyName, int defaultValue)static LonggetLong(String propertyName, Long defaultValue)
-