|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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.
| 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 |
get(String aName)
Retrieve value for provided name |
Location |
getLocation(String name)
Returns Location of given setting |
Iterator |
list()
Returns Iterator with all values |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 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 Location getLocation(String name)
Location of given setting
name - Name of the setting to locate
public String get(String aName)
throws IllegalArgumentException
aName - The name of the setting value to retrieve
IllegalArgumentExceptionpublic Iterator list()
Iterator with all values
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||