@ApplicationScoped public class EnvironmentVariablesSource extends Source
Source
that retrieves values from environment variables.getValue(String, Set)
Constructor and Description |
---|
EnvironmentVariablesSource()
Creates a new
EnvironmentVariablesSource . |
public EnvironmentVariablesSource()
EnvironmentVariablesSource
.public Value getValue(String name, Set<Annotation> qualifiers)
getValue
in class Source
name
- the name of the setting; must not be null
qualifiers
- a Set
of Annotation
s qualifying
the request; the Value
returned by this method will
have a subset of these
qualifiers; must not be null
Value
, or null
if an
invocation of System.getenv(String)
with the supplied
name
returns null
NullPointerException
- if either name
or qualifiers
is null
null
.Copyright © 2019–2020, microBean™. All rights reserved.