Modifier and Type | Method and Description |
---|---|
Map<String,List<String>> |
asMap()
Returns an immutable view of the environment variable names
to Micronaut property names cache.
|
static EnvironmentProperties |
empty()
Creates a new empty cache of environment variable names to Micronaut
properties cache.
|
List<String> |
findPropertyNamesForEnvironmentVariable(String env)
Returns, for an environment variable, the list of deduced Micronaut
property names.
|
static EnvironmentProperties |
fork(EnvironmentProperties delegate)
Creates a new environment properties cache which delegates
queries to the delegate, but will cache values into its
own cache when they are missing.
|
static EnvironmentProperties |
of(Map<String,List<String>> preComputed)
Creates a new environment to property names cache with the
supplied set of precomputed values.
|
public static EnvironmentProperties of(@NonNull Map<String,List<String>> preComputed)
preComputed
- a map from environment variable name to Micronaut property names@NonNull public Map<String,List<String>> asMap()
public static EnvironmentProperties fork(EnvironmentProperties delegate)
delegate
- the delegatepublic static EnvironmentProperties empty()
public List<String> findPropertyNamesForEnvironmentVariable(String env)
env
- the name of the environment variable