|
||||||||||
| 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.DefaultSettings
public class DefaultSettings
DefaultSettings implements optional methods of Settings.
This class creates and delegates to other settings by using an internal
DelegatingSettings object.
| Field Summary | |
|---|---|
(package private) Settings |
delegate
The Settings object that handles API calls. |
protected Logger |
log
The logging instance for this class. |
| Fields inherited from class org.apache.struts2.config.Settings |
|---|
defaultImpl, locale, settingsImpl |
| Constructor Summary | |
|---|---|
DefaultSettings()
Constructs an instance by loading the standard property files, any custom property files ( struts.custom.properties),
and any custom message resources (). |
|
| Method Summary | |
|---|---|
String |
getImpl(String aName)
Implements the Settings.get(String) method. |
boolean |
isSetImpl(String aName)
Implements the Settings.isSet(String) method. |
Iterator |
listImpl()
Implements the Settings.list() method. |
void |
setImpl(String name,
String value)
Implements the Settings.set(String, String) method. |
| Methods inherited from class org.apache.struts2.config.Settings |
|---|
get, getInstance, getLocale, getLocation, getLocationImpl, 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 |
|---|
protected Logger log
Settings delegate
| Constructor Detail |
|---|
public DefaultSettings()
struts.custom.properties),
and any custom message resources ().
Since this constructor combines Settings from multiple resources,
it utilizes a DelegatingSettings instance,
and all API calls are handled by that instance.
| Method Detail |
|---|
public void setImpl(String name,
String value)
throws IllegalArgumentException,
UnsupportedOperationException
SettingsSettings.set(String, String) method.
setImpl in class Settingsname - Identifer for the setting to change.value - The new value for the setting.
IllegalArgumentException - if an error occurs when setting the value.
UnsupportedOperationException - if the config implementation does not support setting values.Settings.set(String, String)
public String getImpl(String aName)
throws IllegalArgumentException
SettingsSettings.get(String) method.
getImpl in class SettingsaName - The name of the setting value to retreive
IllegalArgumentException - if an error occurs when retrieving the valueSettings.get(String)public boolean isSetImpl(String aName)
SettingsSettings.isSet(String) method.
isSetImpl in class SettingsaName - Identifier for the setting value to change
Settings.isSet(String)public Iterator listImpl()
SettingsSettings.list() method.
listImpl in class SettingsSettings.list()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||