|
||||||||||
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
class PropertiesSettings
A class to handle settings via a properties file.
Field Summary | |
---|---|
(package private) static Logger |
LOG
|
(package private) LocatableProperties |
settings
|
Fields inherited from class org.apache.struts2.config.Settings |
---|
defaultImpl, locale, settingsImpl |
Constructor Summary | |
---|---|
PropertiesSettings(String name)
Creates a new properties config given the name of a properties file. |
Method Summary | |
---|---|
String |
getImpl(String aName)
Gets a property from the properties file. |
Location |
getLocationImpl(String aName)
Gets the location of a property from the properties file. |
boolean |
isSetImpl(String aName)
Tests to see if a property exists in the properties file. |
Iterator |
listImpl()
Lists all keys in the properties file. |
void |
setImpl(String aName,
String aValue)
Sets a property in the properties file. |
Methods inherited from class org.apache.struts2.config.Settings |
---|
get, getInstance, getLocale, getLocation, isSet, list, reset, set, setInstance |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
LocatableProperties settings
static Logger LOG
Constructor Detail |
---|
public PropertiesSettings(String name)
name
- the name of the properties file, excluding the ".properties" extension.Method Detail |
---|
public void setImpl(String aName, String aValue)
setImpl
in class Settings
aName
- Identifer for the setting to change.aValue
- The new value for the setting.Settings.set(String, String)
public String getImpl(String aName) throws IllegalArgumentException
getImpl
in class Settings
aName
- The name of the setting value to retreive
IllegalArgumentException
- if an error occurs when retrieving the valueSettings.get(String)
public Location getLocationImpl(String aName) throws IllegalArgumentException
getLocationImpl
in class Settings
aName
- Name of the setting to locate
IllegalArgumentException
- if an error occurs when retrieving the valueSettings.getLocation(String)
public boolean isSetImpl(String aName)
isSetImpl
in class Settings
aName
- Identifier for the setting value to change
Settings.isSet(String)
public Iterator listImpl()
listImpl
in class Settings
Settings.list()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |