com.opensymphony.webwork.config
Class DefaultConfiguration

java.lang.Object
  extended by com.opensymphony.webwork.config.Configuration
      extended by com.opensymphony.webwork.config.DefaultConfiguration

public class DefaultConfiguration
extends Configuration

Default implementation of Configuration - creates and delegates to other configurations by using an internal DelegatingConfiguration.

Author:
Rickard ???berg, Jason Carreira, Bill Lynch (docs)

Field Summary
protected  org.apache.commons.logging.Log log
           
 
Constructor Summary
DefaultConfiguration()
          Creates a new DefaultConfiguration object by loading all property files and creating an internal DelegatingConfiguration object.
 
Method Summary
 Object getImpl(String aName)
          Gets the specified property - delegates to the internal config implementation.
 boolean isSetImpl(String aName)
          Determines whether or not a value has been set - delegates to the internal config implementation.
 Iterator listImpl()
          Returns a list of all property names - delegates to the internal config implementation.
 void setImpl(String aName, Object aValue)
          Sets the given property - delegates to the internal config implementation.
 
Methods inherited from class com.opensymphony.webwork.config.Configuration
get, getConfiguration, getLocale, getString, isSet, list, reset, set, setConfiguration
 
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

DefaultConfiguration

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

Method Detail

setImpl

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

Overrides:
setImpl in class Configuration
Throws:
IllegalArgumentException
UnsupportedOperationException
See Also:
Configuration.set(String, Object)

getImpl

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

Overrides:
getImpl in class Configuration
Throws:
IllegalArgumentException
See Also:
Configuration.get(String)

isSetImpl

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

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

listImpl

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

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

WebWork Project Page