|
SolarMetric Kodo JDO 2.5.8 generated on January 11 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.solarmetric.kodo.conf.Configurations
Utility methods dealing with configuration.
| Constructor Summary | |
Configurations()
|
|
| Method Summary | |
static void |
configureInstance(Object obj,
String properties)
|
static Object |
createInstance(String clsName,
Properties properties,
ClassLoader loader)
Creates an instance of the given class ane configures it with the given properties. |
static Object |
createInstance(String clsName,
String properties,
ClassLoader loader)
Creates an instance of the given class ane configures it with the given properties. |
static Object |
lookup(String name)
Looks up the given name in JNDI. |
static Options |
parseOptions(String properties)
|
static void |
populateConfiguration(Configuration conf,
Options opts)
Set the given Configuration instance from the command line
options provided. |
static Properties |
replaceVariables(Properties properties)
Replace variables in property values of the form ${variable} with the key of that value. |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public Configurations()
| Method Detail |
public static Object createInstance(String clsName,
Properties properties,
ClassLoader loader)
public static Object createInstance(String clsName,
String properties,
ClassLoader loader)
public static Options parseOptions(String properties)
public static Properties replaceVariables(Properties properties)
Replace variables in property values of the form
${variable} with the key of that value.
E.g.,
foo=bar
baz=${foo}
Will result in:
foo=bar baz=bar
public static void configureInstance(Object obj,
String properties)
public static Object lookup(String name)
public static void populateConfiguration(Configuration conf,
Options opts)
Configuration instance from the command line
options provided. All property names of the given configuration are
recognized; additionally, if a properties argument exists,
the Properties instance it points to will be loaded and set
into the given configuration instance.
|
SolarMetric Kodo JDO 2.5.8 generated on January 11 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||