org.apache.struts2.config
Class DefaultSettings

java.lang.Object
  extended by org.apache.struts2.config.Settings
      extended by org.apache.struts2.config.DefaultSettings

public class DefaultSettings
extends Settings

Default implementation of Settings - creates and delegates to other settingss by using an internal DelegatingSettings.


Field Summary
protected  org.apache.commons.logging.Log log
           
 
Constructor Summary
DefaultSettings()
          Creates a new DefaultSettings object by loading all property files and creating an internal DelegatingSettings object.
 
Method Summary
 java.lang.String getImpl(java.lang.String aName)
          Gets the specified property - delegates to the internal config implementation.
 boolean isSetImpl(java.lang.String aName)
          Determines whether or not a value has been set - delegates to the internal config implementation.
 java.util.Iterator listImpl()
          Returns a list of all property names - delegates to the internal config implementation.
 void setImpl(java.lang.String aName, java.lang.String aValue)
          Sets the given property - delegates to the internal config implementation.
 
Methods inherited from class org.apache.struts2.config.Settings
get, getInstance, getLocale, 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

log

protected org.apache.commons.logging.Log log
Constructor Detail

DefaultSettings

public DefaultSettings()
Creates a new DefaultSettings object by loading all property files and creating an internal DelegatingSettings object. All calls to get and set in this class will call that settings object.

Method Detail

setImpl

public void setImpl(java.lang.String aName,
                    java.lang.String aValue)
             throws java.lang.IllegalArgumentException,
                    java.lang.UnsupportedOperationException
Sets the given property - delegates to the internal config implementation.

Overrides:
setImpl in class Settings
Throws:
java.lang.IllegalArgumentException
java.lang.UnsupportedOperationException
See Also:
Settings.set(String, String)

getImpl

public java.lang.String getImpl(java.lang.String aName)
                         throws java.lang.IllegalArgumentException
Gets the specified property - delegates to the internal config implementation.

Overrides:
getImpl in class Settings
Throws:
java.lang.IllegalArgumentException
See Also:
Settings.get(String)

isSetImpl

public boolean isSetImpl(java.lang.String aName)
Determines whether or not a value has been set - delegates to the internal config implementation.

Overrides:
isSetImpl in class Settings
See Also:
Settings.isSet(String)

listImpl

public java.util.Iterator listImpl()
Returns a list of all property names - delegates to the internal config implementation.

Overrides:
listImpl in class Settings
See Also:
Settings.list()


Copyright © 2000-2006 Apache Software Foundation. All Rights Reserved.