|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.ggtools.grand.Configuration
public class Configuration
A singleton class for configuration.
| Constructor Summary | |
|---|---|
protected |
Configuration(java.util.Properties override)
Creates a new configuration. |
| Method Summary | |
|---|---|
java.lang.String |
get(java.lang.String key)
Get a parameter as a String. |
java.util.Properties |
getBuildProperties()
|
static Configuration |
getConfiguration()
Get a configuration with the default values. |
static Configuration |
getConfiguration(java.io.File propFile)
Returns an new configuration overriding some parameters from a file. |
static Configuration |
getConfiguration(java.util.Properties override)
Returns a new configuration overriding some parameters. |
java.lang.String |
getVersionString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected Configuration(java.util.Properties override)
throws java.io.IOException
override - properties to override in the default configuration.
java.io.IOException| Method Detail |
|---|
public static Configuration getConfiguration()
throws java.io.IOException
java.io.IOException - if the default properties were not loadable.
public static Configuration getConfiguration(java.io.File propFile)
throws java.io.IOException
propFile - override file
java.io.IOException - if the default properties were not loadable.
public static Configuration getConfiguration(java.util.Properties override)
throws java.io.IOException
override - the properties to override.
java.io.IOException - if the default properties were not loadable.public final java.lang.String get(java.lang.String key)
key - parameter to look for.
public final java.util.Properties getBuildProperties()
public final java.lang.String getVersionString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||