public class EnvironmentPropertySource extends MapPropertySource
System.getenv().PropertySource.PropertyConvention| Modifier and Type | Field and Description |
|---|---|
static String |
NAME
Constant for Environment property source.
|
static int |
POSITION
The position of the loader.
|
CONTEXTHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Constructor and Description |
|---|
EnvironmentPropertySource()
Default constructor.
|
EnvironmentPropertySource(List<String> includes,
List<String> excludes)
Allows for control over which environment variables are included.
|
| Modifier and Type | Method and Description |
|---|---|
PropertySource.PropertyConvention |
getConvention() |
int |
getOrder() |
asMap, get, getName, iterator, of, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitof, of, offorEach, spliteratorpublic static final int POSITION
public static final String NAME
public EnvironmentPropertySource()
public EnvironmentPropertySource(@Nullable List<String> includes, @Nullable List<String> excludes)
includes - The environment variables to include in configurationexcludes - The environment variables to exclude from configurationpublic int getOrder()
public PropertySource.PropertyConvention getConvention()