public class DirConfigSource extends Object implements ConfigSource
foo/ ├── num.max └── num.size
new DirConfigSource("foo")will provide 2 properties:
|Modifier and Type||Method and Description|
The name of the config might be used for logging or analysis of configured values.
Return the ordinal for this config source.
Return the properties in this config source
Return the value for the specified property in this config source.
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public DirConfigSource(File dir, int ordinal)
public String getName()
public int getOrdinal()
Some operating systems allow only alphabetic characters or an underscore(_), in environment variables.
Other characters such as ., /, etc may be disallowed.
In order to set a value for a config property that has a name containing such disallowed characters from an environment variable,
the following rules are used.
This ConfigSource searches for potentially 3 environment variables with a given property name (e.g.
The first environment variable that is found is returned by this ConfigSource.
Copyright © 2020 JBoss by Red Hat. All rights reserved.