Expresso 5-6

com.jcorporate.expresso.kernel.internal
Class DefaultConfigBean

java.lang.Object
  extended bycom.jcorporate.expresso.kernel.internal.DefaultConfigBean
All Implemented Interfaces:
Configuration

public class DefaultConfigBean
extends Object
implements Configuration

This class represents a default implementation of the Configuration interface. Is is used internally by the SystemFactory to load all the configuration values to be distributed to the Components for configuration. Those wishing to change the underlying class should create their own System factory

Since:
Expresso 5.1
Version:
$Revision: 1.4 $ on $Date: 2004/11/17 20:48:17 $
Author:
Michael Rimov

Constructor Summary
DefaultConfigBean()
           
 
Method Summary
 boolean contains(String name, String key)
          Does the specified mapped property contain a value for the specified key value?
 Object get(String name)
          Return the value of a simple property with the specified name
 Object get(String name, int index)
          Return the value of an indexed property with the specified name.
 Object get(String name, String key)
          Return the value of a mapped property with the specified name, or null if there is no value for the specified key
 List getIndexedProperties(String name)
          Retrieve ALL the indexed properties defined by parameter name.
 Map getMappedProperties(String name)
          Retrieved all the mapped properties defined by name
 void set(String name, int index, Object o)
           
 void set(String name, Object o)
           
 void set(String name, String key, Object o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultConfigBean

public DefaultConfigBean()
Method Detail

get

public Object get(String name)
Description copied from interface: Configuration
Return the value of a simple property with the specified name

Specified by:
get in interface Configuration
Parameters:
name - Name of the property whose value is to be retrieved
Returns:
java.lang.Object representing the property value.

get

public Object get(String name,
                  int index)
Description copied from interface: Configuration
Return the value of an indexed property with the specified name.

Specified by:
get in interface Configuration
Parameters:
name - Name of the property whose value is to be retrieved
index - Index of the value to be retrieved
Returns:
java.lang.Object representing the property value.

getIndexedProperties

public List getIndexedProperties(String name)
Retrieve ALL the indexed properties defined by parameter name.

Specified by:
getIndexedProperties in interface Configuration
Parameters:
name - the name of the property
Returns:
java.util.List

get

public Object get(String name,
                  String key)
Description copied from interface: Configuration
Return the value of a mapped property with the specified name, or null if there is no value for the specified key

Specified by:
get in interface Configuration
Parameters:
name - Name of the property whose value is to be retrieved
key - Key of the value to be retrieved
Returns:
java.lang.Object representing the property value.

getMappedProperties

public Map getMappedProperties(String name)
Retrieved all the mapped properties defined by name

Specified by:
getMappedProperties in interface Configuration
Parameters:
name - the name of the mapped properties to retrieve
Returns:
java.util.Map of all properties keyed by the property key.

contains

public boolean contains(String name,
                        String key)
Description copied from interface: Configuration
Does the specified mapped property contain a value for the specified key value?

Specified by:
contains in interface Configuration
Parameters:
name - Name of the property to check
key - Name of the key to check
Returns:
true if the property exists.

set

public void set(String name,
                Object o)

set

public void set(String name,
                int index,
                Object o)

set

public void set(String name,
                String key,
                Object o)

Expresso 5-6

Please see www.jcorporate.com for information about new Expresso releases.