|
||||||||||
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.DelegatingSettings
class DelegatingSettings
DelegatingSettings stores an internal list of Settings
objects
to update settings or retrieve settings values.
Each time a Settings method is called (get, set, list, and so forth), this class goes through the list of Settings objects and calls that method for each delegate, withholding any exception until all delegates have been called.
Field Summary | |
---|---|
(package private) Settings[] |
delegates
The Settings objects. |
Fields inherited from class org.apache.struts2.config.Settings |
---|
defaultImpl, locale, settingsImpl |
Constructor Summary | |
---|---|
DelegatingSettings(Settings[] delegates)
Creates a new DelegatingSettings object utilizing the list of Settings objects. |
Method Summary | |
---|---|
String |
getImpl(String name)
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 |
---|
Settings[] delegates
Constructor Detail |
---|
public DelegatingSettings(Settings[] delegates)
Settings
objects.
delegates
- The Settings objects to use as delegatesMethod Detail |
---|
public void setImpl(String name, String value) throws IllegalArgumentException, UnsupportedOperationException
Settings
Settings.set(String, String)
method.
setImpl
in class Settings
name
- 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 name) throws IllegalArgumentException
Settings
Settings.get(String)
method.
getImpl
in class Settings
name
- The name of the setting value to retreive
IllegalArgumentException
- if an error occurs when retrieving the valueSettings.get(String)
public boolean isSetImpl(String aName)
Settings
Settings.isSet(String)
method.
isSetImpl
in class Settings
aName
- Identifier for the setting value to change
Settings.isSet(String)
public Iterator listImpl()
Settings
Settings.list()
method.
listImpl
in class Settings
Settings.list()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |