|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rioproject.config.AggregateConfig
public class AggregateConfig
The AggregateConfig provides an approach to aggregate configuration files,
allowing entries to be resolved in a "common" Configuration.
| Field Summary |
|---|
| Fields inherited from interface net.jini.config.Configuration |
|---|
NO_DATA, NO_DEFAULT |
| Constructor Summary | |
|---|---|
AggregateConfig(Configuration commonConfig,
String[] configArgs)
Create an AggregateConfig |
|
AggregateConfig(Configuration commonConfig,
String[] configArgs,
ClassLoader loader)
Create an AggregateConfig |
|
| Method Summary | |
|---|---|
Configuration |
getCommonConfiguration()
Get the common configuration this class was created with |
Object |
getEntry(String component,
String name,
Class type)
Get an entry from the aggregate configuration files. |
Object |
getEntry(String component,
String name,
Class type,
Object defaultValue)
Get an entry from the aggregate configuration files. |
Object |
getEntry(String component,
String name,
Class type,
Object defaultValue,
Object data)
Get an entry from the aggregate configuration files. |
Configuration |
getOuterConfiguration()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AggregateConfig(Configuration commonConfig,
String[] configArgs)
throws ConfigurationException
commonConfig - The "common" ConfigurationconfigArgs - Configuration arguments for an 'outer' configuration.
This configuration will be looked at first for configuration entries.
If entries are not found, the common configuration is consulted.
ConfigurationException - If there are errors creating the
Configuration
IllegalArgumentException - if the commonConfig parameter is null
public AggregateConfig(Configuration commonConfig,
String[] configArgs,
ClassLoader loader)
throws ConfigurationException
commonConfig - - The "common" ConfigurationconfigArgs - Configuration arguments for an 'outer' configuration.
This configuration will be looked at first for configuration entries.
If entries are not found, the common configuration is consulted.loader - - The class loader to use for loading entries from the
configuration file(s). If null, the classloader that loaded the
AggregateConfig class is used
ConfigurationException - If there are errors creating the
Configuration
IllegalArgumentException - if the config parameter is null| Method Detail |
|---|
public Configuration getCommonConfiguration()
Configuration object.
public Object getEntry(String component,
String name,
Class type)
throws ConfigurationException
getEntry in interface Configurationcomponent - the component being configuredname - the name of the entry for the componenttype - the type of the object to be returned
ConfigurationException
public Object getEntry(String component,
String name,
Class type,
Object defaultValue)
throws ConfigurationException
getEntry in interface Configurationcomponent - the component being configuredname - the name of the entry for the componenttype - the type of the object to be returneddefaultValue - the object to return if no matching entry is
found, or NO_DEFAULT to specify no default
ConfigurationException
public Object getEntry(String component,
String name,
Class type,
Object defaultValue,
Object data)
throws ConfigurationException
getEntry in interface Configurationcomponent - the component being configuredname - the name of the entry for the componenttype - the type of the object to be returneddefaultValue - the object to return if no matching entry is
found, or NO_DEFAULT to specify no defaultdata - an object to use when computing the value of the entry,
or NO_DATA to specify no data
ConfigurationExceptionpublic Configuration getOuterConfiguration()
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||