org.apache.struts2.config
类 DefaultSettings

java.lang.Object
  继承者 org.apache.struts2.config.DefaultSettings

public class DefaultSettings
extends Object

DefaultSettings implements optional methods of Settings.

This class creates and delegates to other settings by using an internal DelegatingSettings object.


构造方法摘要
DefaultSettings()
          Constructs an instance by loading the standard property files, any custom property files (struts.custom.properties), and any custom message resources ().
 
方法摘要
 String get(String aName)
          Retrieve value for provided name
 com.opensymphony.xwork2.util.location.Location getLocation(String name)
          Returns Location of given setting
 Iterator list()
          Returns Iterator with all values
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

DefaultSettings

public DefaultSettings()
Constructs an instance by loading the standard property files, any custom property files (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.

方法详细信息

getLocation

public com.opensymphony.xwork2.util.location.Location getLocation(String name)
Returns Location of given setting

参数:
name - Name of the setting to locate
返回:
The location of the setting or null

get

public String get(String aName)
           throws IllegalArgumentException
Retrieve value for provided name

参数:
aName - The name of the setting value to retrieve
返回:
The setting value as a String or null
抛出:
IllegalArgumentException

list

public Iterator list()
Returns Iterator with all values

返回:
A list of the settings as an iterator