- java.lang.Object
-
- com.appslandia.common.utils.SYS
-
-
Constructor Summary
Constructors Constructor Description SYS()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleangetBoolProp(String key, boolean defaultValue)static doublegetDoubleProp(String key, double defaultValue)static StringgetEnv(String key)static StringgetEnv(String key, String defaultValue)static intgetIntProp(String key, int defaultValue)static longgetLongProp(String key, long defaultValue)static StringgetProp(String key)static StringgetProp(String key, String defaultValue)static StringgetRequiredEnv(String key)static StringgetRequiredProp(String key)static StringresolveExpr(String valueOrExpr)static StringresolveExpr(String valueOrExpr, Out<Boolean> isExpr)static StringresolveString(String str)static StringresolveString(String str, Object... parameters)static StringresolveString(String str, Map<String,Object> parameters)static IllegalStateExceptiontoNoValueExprException(String expr)
-
-
-
Method Detail
-
getBoolProp
public static boolean getBoolProp(String key, boolean defaultValue)
-
getIntProp
public static int getIntProp(String key, int defaultValue)
-
getLongProp
public static long getLongProp(String key, long defaultValue)
-
getDoubleProp
public static double getDoubleProp(String key, double defaultValue)
-
resolveString
public static String resolveString(String str) throws IllegalStateException
- Throws:
IllegalStateException
-
resolveString
public static String resolveString(String str, Map<String,Object> parameters) throws IllegalStateException
- Throws:
IllegalStateException
-
resolveString
public static String resolveString(String str, Object... parameters) throws IllegalStateException
- Throws:
IllegalStateException
-
resolveExpr
public static String resolveExpr(String valueOrExpr) throws IllegalStateException
- Throws:
IllegalStateException
-
toNoValueExprException
public static IllegalStateException toNoValueExprException(String expr)
-
-