|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PropertyServiceImple
The PropertyServiceImple class provides a uniform interface to accessing and manipulating Java properties.
Method Summary | |
---|---|
void |
addPropertiesFile(java.lang.String fileName)
Add the specified property file to the list of registered property files. |
java.lang.String |
getProperty(java.lang.String name,
java.lang.String defaultValue)
Return the value associated with the property name. |
void |
loadProperties()
Read in the properties file, if present. |
java.lang.String |
locateFile(java.lang.String propertyName)
Locate property file |
void |
removePropertiesFile(java.lang.String fileName)
Remove the specified property file from the list of registered property files. |
java.lang.String |
removeProperty(java.lang.String name,
boolean flush)
Remove the property. |
void |
saveProperties()
Saves the altered properties back to the properties files from which they came. |
void |
setProperty(java.lang.String name,
java.lang.String property,
boolean flush,
boolean warn)
Set the property name to have the specified value. |
Method Detail |
---|
void addPropertiesFile(java.lang.String fileName)
void removePropertiesFile(java.lang.String fileName) throws java.io.FileNotFoundException
java.io.FileNotFoundException
void loadProperties() throws java.lang.SecurityException, java.io.IOException
java.lang.SecurityException
java.io.IOException
void saveProperties() throws java.lang.SecurityException, java.io.IOException
java.lang.SecurityException
java.io.IOException
void setProperty(java.lang.String name, java.lang.String property, boolean flush, boolean warn)
warn
is true
then issue a warning
message if an existing property value is changed.
java.lang.String getProperty(java.lang.String name, java.lang.String defaultValue)
java.lang.String removeProperty(java.lang.String name, boolean flush)
java.lang.String locateFile(java.lang.String propertyName) throws java.io.FileNotFoundException
java.io.FileNotFoundException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |