@Internal public final class EnvironmentProperties extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.util.List<java.lang.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.
|
java.util.List<java.lang.String> |
findPropertyNamesForEnvironmentVariable(java.lang.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(java.util.Map<java.lang.String,java.util.List<java.lang.String>> preComputed)
Creates a new environment to property names cache with the
supplied set of precomputed values.
|
public static EnvironmentProperties of(@NonNull java.util.Map<java.lang.String,java.util.List<java.lang.String>> preComputed)
preComputed
- a map from environment variable name to Micronaut property names@NonNull public java.util.Map<java.lang.String,java.util.List<java.lang.String>> asMap()
public static EnvironmentProperties fork(EnvironmentProperties delegate)
delegate
- the delegatepublic static EnvironmentProperties empty()
public java.util.List<java.lang.String> findPropertyNamesForEnvironmentVariable(java.lang.String env)
env
- the name of the environment variable