|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.carlosbcruz.util.PropertiesController
public class PropertiesController
Utility class to help retrieving application properties
| Constructor Summary | |
|---|---|
PropertiesController()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
getStringProperty(java.lang.String propertyKey)
Get the property to a key. |
static java.lang.String |
getStringPropertyWithDefault(java.lang.String propertyKey,
java.lang.String defaultValue)
Retrieve the property. |
static void |
loadProperties()
Load the default properties |
static void |
nukeProperties()
Clear the properties file |
static void |
removeProperty(java.lang.String propertyKey)
Remove a property |
static void |
saveProperties()
Save the properties in the application file |
static void |
setStringProperty(java.lang.String propertyKey,
java.lang.String propertyValue)
Set an Account property |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertiesController()
| Method Detail |
|---|
public static void nukeProperties()
public static void loadProperties()
public static java.lang.String getStringProperty(java.lang.String propertyKey)
propertyKey - The parameter key
public static java.lang.String getStringPropertyWithDefault(java.lang.String propertyKey,
java.lang.String defaultValue)
propertyKey - The parameter keydefaultValue - The default value
public static void removeProperty(java.lang.String propertyKey)
propertyKey -
public static void setStringProperty(java.lang.String propertyKey,
java.lang.String propertyValue)
propertyKey - the KeypropertyValue - the Valuepublic static void saveProperties()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||