/** * Set a property return the previous value. This will evaluate any * expressions in the value. */ public static synchronized String put(String key, String value) { return getPropertyMap().putEval(key, value); }
/** * Return a boolean property with a default value. */ public static synchronized boolean getBoolean(String key, boolean defaultValue) { return getPropertyMap().getBoolean(key, defaultValue); }
/** * Set a Map of key value properties. */ public static synchronized void putAll(Map<String, String> keyValueMap) { for (Entry<String, String> e : keyValueMap.entrySet()) { getPropertyMap().putEval(e.getKey(), e.getValue()); } }
/** * Return a String property with a default value. */ public static synchronized String get(String key, String defaultValue) { return getPropertyMap().get(key, defaultValue); }
/** * Return a boolean property with a default value. */ public static synchronized boolean getBoolean(String key, boolean defaultValue) { return getPropertyMap().getBoolean(key, defaultValue); }
/** * Parse and evaluate any expressions that have not already been evaluated. */ public static synchronized void evaluateExpressions() { getPropertyMap().evaluateProperties(); }
/** * Return a String property with a default value. */ public static synchronized String get(String key, String defaultValue) { return getPropertyMap().get(key, defaultValue); }
/** * Return a int property with a default value. */ public static synchronized int getInt(String key, int defaultValue) { return getPropertyMap().getInt(key, defaultValue); }
/** * Parse the string replacing any expressions like ${catalina.base}. * <p> * This will evaluate expressions using first environment variables, than java * system variables and lastly properties in ebean.properties - in that order. * </p> * <p> * Expressions start with "${" and end with "}". * </p> */ public static String evaluateExpressions(String val) { return getPropertyMap().eval(val); }
/** * Return a int property with a default value. */ public static synchronized int getInt(String key, int defaultValue) { return getPropertyMap().getInt(key, defaultValue); }
/** * Set a Map of key value properties. */ public static synchronized void putAll(Map<String,String> keyValueMap) { for (Entry<String,String> e: keyValueMap.entrySet()) { getPropertyMap().putEval(e.getKey(), e.getValue()); } }
/** * Parse and evaluate any expressions that have not already been evaluated. */ public static synchronized void evaluateExpressions() { getPropertyMap().evaluateProperties(); }
/** * Set a property return the previous value. This will evaluate any * expressions in the value. */ public static synchronized String put(String key, String value) { return getPropertyMap().putEval(key, value); }
/** * Parse the string replacing any expressions like ${catalina.base}. * <p> * This will evaluate expressions using first environment variables, * than java system variables and lastly properties in ebean.properties * - in that order. * </p> * <p> * Expressions start with "${" and end with "}". * </p> */ public static String evaluateExpressions(String val) { return getPropertyMap().eval(val); }