|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.solarmetric.rd.conf.Configurations
Utility methods dealing with configuration.
| Constructor Summary | |
Configurations()
|
|
| Method Summary | |
static void |
configureInstance(java.lang.Object obj,
java.lang.String properties)
Configures the given object with the given properties by matching the properties string to the object's setter methods. |
static java.lang.Object |
createInstance(java.lang.String clsName,
java.lang.String properties,
java.lang.ClassLoader loader)
Creates an instance of the given class and configures it with the given properties. |
static java.io.File |
getFile(java.lang.String name,
java.lang.ClassLoader loader)
Check the given string for a matching file. |
static java.lang.Object |
lookup(java.lang.String name)
Looks up the given name in JNDI. |
static serp.util.Options |
parseOptions(java.lang.String properties)
Parse a set of properties from a space-delimited string. |
static void |
populateConfiguration(com.solarmetric.rd.conf.Configuration conf,
serp.util.Options opts)
Set the given Configuration instance from the command line
options provided. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Configurations()
| Method Detail |
public static java.lang.Object createInstance(java.lang.String clsName,
java.lang.String properties,
java.lang.ClassLoader loader)
clsName - the name of the class to instantiate; the class
must have a default constructorproperties - values for the setter methods of the classloader - the class loader to use, or null to use the
context loader of the current thread
java.lang.RuntimeException - on creation error
public static void configureInstance(java.lang.Object obj,
java.lang.String properties)
java.lang.RuntimeException - on configuration errorpublic static serp.util.Options parseOptions(java.lang.String properties)
public static void populateConfiguration(com.solarmetric.rd.conf.Configuration conf,
serp.util.Options opts)
Configuration instance from the command line
options provided. All property names of the given configuration are
recognized; additionally, if a properties or
p argument exists, the Properties instance it
points to will be loaded and set into the given configuration instance.
It can point to either a file or a resource name.
public static java.io.File getFile(java.lang.String name,
java.lang.ClassLoader loader)
name - the file path or resource nameloader - a class loader to use in resource lookup, or null
to use the thread's context loaderpublic static java.lang.Object lookup(java.lang.String name)
|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||