| Modifier and Type | Method and Description |
|---|---|
void |
dump(java.io.PrintStream p,
java.lang.String indent) |
static java.lang.String |
get(java.lang.String p) |
static java.lang.String |
get(java.lang.String p,
java.lang.String def) |
static Environment |
getEnvironment() |
java.lang.String |
getErrorString() |
java.lang.String |
getName() |
java.lang.String |
getProperty(java.lang.String s)
If property name has the pattern
${propname}, this method will
Attempt to get it from an operating system environment variable called 'propname'
If not present, it will try to pick it from the a Java system.property
If not present either, it will try the target environment (either .yml or .cfg
Otherwise it returns null
The special pattern $env{propname} would just try to pick it from the OS environment. |
java.lang.String |
getProperty(java.lang.String p,
java.lang.String def) |
static Environment |
reload() |
java.lang.String |
toString() |
public java.lang.String getName()
public static Environment reload() throws java.io.IOException
java.io.IOExceptionpublic static Environment getEnvironment()
public static java.lang.String get(java.lang.String p)
public static java.lang.String get(java.lang.String p,
java.lang.String def)
public java.lang.String getProperty(java.lang.String p,
java.lang.String def)
public java.lang.String getErrorString()
public java.lang.String getProperty(java.lang.String s)
${propname}, this method will
.yml or .cfg$env{propname} would just try to pick it from the OS environment.
$sys{propname} will just try to get it from a System.property and
$verb{propname} will return a verbatim copy of the value.s - property namepublic void dump(java.io.PrintStream p,
java.lang.String indent)
public java.lang.String toString()
toString in class java.lang.Object