|
eXo Kernel :: Commons Utils 2.4.10-UXP01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.commons.utils.PropertyManager
public class PropertyManager
A property manager that acts as a facade of the system properties. The manager has a cache that is only disabled
if the property exo.product.developing is set to the false string. The cache usage is read once during the static
initialization of the cache and it can be programmatically triggered by calling the refresh() method.
| Field Summary | |
|---|---|
static String |
DEVELOPING
. |
static String |
PROPERTIES_URL
. |
static String |
RUNTIME_PROFILES
. |
| Constructor Summary | |
|---|---|
PropertyManager()
|
|
| Method Summary | |
|---|---|
static String |
getProperty(String propertyName)
Returns a property from the provided property name. |
static boolean |
getUseCache()
Returns true if the cache is enabled. |
static boolean |
isDevelopping()
Returns true if the product developing mode is enabled. |
static void |
refresh()
Refresh the property manager. |
static void |
setProperty(String propertyName,
String propertyValue)
Update a property in the system properties and in the cache. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DEVELOPING
public static final String RUNTIME_PROFILES
public static final String PROPERTIES_URL
| Constructor Detail |
|---|
public PropertyManager()
| Method Detail |
|---|
public static String getProperty(String propertyName)
propertyName - the property name
public static boolean isDevelopping()
public static void setProperty(String propertyName,
String propertyValue)
propertyName - the property namepropertyValue - the property valuepublic static boolean getUseCache()
public static void refresh()
|
eXo Kernel :: Commons Utils 2.4.10-UXP01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||