|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.struts2.config.Settings
org.apache.struts2.config.PropertiesSettings
public class PropertiesSettings
A class to handle settings via a properties file.
Constructor Summary | |
---|---|
PropertiesSettings(java.lang.String name)
Creates a new properties config given the name of a properties file. |
Method Summary | |
---|---|
java.lang.String |
getImpl(java.lang.String aName)
Gets a property from the properties file. |
boolean |
isSetImpl(java.lang.String aName)
Tests to see if a property exists in the properties file. |
java.util.Iterator |
listImpl()
Lists all keys in the properties file. |
void |
setImpl(java.lang.String aName,
java.lang.String aValue)
Sets a property in the properties file. |
Methods inherited from class org.apache.struts2.config.Settings |
---|
get, getInstance, getLocale, isSet, list, reset, set, setInstance |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertiesSettings(java.lang.String name)
name
- the name of the properties file, excluding the ".properties" extension.Method Detail |
---|
public void setImpl(java.lang.String aName, java.lang.String aValue)
setImpl
in class Settings
Settings.set(String, String)
public java.lang.String getImpl(java.lang.String aName) throws java.lang.IllegalArgumentException
getImpl
in class Settings
java.lang.IllegalArgumentException
Settings.get(String)
public boolean isSetImpl(java.lang.String aName)
isSetImpl
in class Settings
Settings.isSet(String)
public java.util.Iterator listImpl()
listImpl
in class Settings
Settings.list()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |