Modifier and Type | Field and Description |
---|---|
protected static java.util.Map<java.lang.String,java.lang.String> |
notMap |
Modifier and Type | Method and Description |
---|---|
void |
dump(java.io.PrintStream p,
java.lang.String indent) |
static void |
flat(java.util.Properties properties,
java.lang.String prefix,
java.util.Map<java.lang.String,java.lang.Object> c,
boolean dereference) |
static java.lang.String |
get(java.lang.String p) |
static java.lang.String |
get(java.lang.String p,
java.lang.String def) |
java.lang.String |
getEnvDir() |
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 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 java.lang.String getEnvDir()
public static Environment reload() throws java.io.IOException
java.io.IOException
public 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 static void flat(java.util.Properties properties, java.lang.String prefix, java.util.Map<java.lang.String,java.lang.Object> c, boolean dereference)
public void dump(java.io.PrintStream p, java.lang.String indent)
public java.lang.String toString()
toString
in class java.lang.Object