com.solarmetric.kodo.conf
Class Configurations
java.lang.Object
|
+--com.solarmetric.kodo.conf.Configurations
- public class Configurations
- extends Object
Utility methods dealing with configuration.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Configurations
public Configurations()
createInstance
public static Object createInstance(String clsName,
String properties,
ClassLoader loader)
- Creates an instance of the given class ane configures it with the
given properties. Property settings should be in the form
"prop1=val1 prop2=val2 ...". If the given class is null, null is
returned.
parseOptions
public static Options parseOptions(String properties)
configureInstance
public static void configureInstance(Object obj,
String properties)
lookup
public static Object lookup(String name)
- Looks up the given name in JNDI. If the name is null, null is
returned.
populateConfiguration
public static void populateConfiguration(Configuration conf,
Options opts)
- Set the given
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.
Copyright 2001,2002 SolarMetric, Inc. All Rights Reserved.