java.lang.Objectorg.apache.struts2.config.Settings
Direct Known Subclasses:
DefaultSettings, DelegatingSettings, PropertiesSettings
Implementation of the class is pluggable (the default implementation is DefaultSettings ). Pluggability gives applications to ability to customize how settings are retrieved. As an example, an application may wish to check some custom property store before delegating to the usual configuration and property files.
Key methods:
Key methods for subclasses (plugins):
| Field Summary | ||
|---|---|---|
| static Settings | settingsImpl | A pluggable implementation of Settings, provided through the #setInstance method. |
| static Settings | defaultImpl | An instance of DefaultSettings to use when another implementation is not provided (plugged in). |
| static Locale | locale | An instance of the default locale as specified by the struts.locale setting.
|
| Method from org.apache.struts2.config.Settings Summary: |
|---|
| get, getImpl, getInstance, getLocale, getLocation, getLocationImpl, isSet, isSetImpl, list, listImpl, reset, set, setImpl, setInstance |
| Methods from java.lang.Object: |
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from org.apache.struts2.config.Settings Detail: |
|---|
The method will throw an |
|
This method will substitute the default instance if another instance is not registered. |
This method utilizes the
If a |
The Location is utilized as part of precise error reporting.
This method will throw an |
|
This method is useful for testing for the existance of setting without throwing an IllegalArgumentException. |
|
|
|
|
This method raises an exception if an error occurs when setting the value or if the settings implementation does not support setting values. |
|
This method can only be called once. |