@ApplicationScoped public class SystemPropertiesSource extends Source
Source
that retrieves values from system properties.getValue(String, Set)
Constructor and Description |
---|
SystemPropertiesSource()
Creates a new
SystemPropertiesSource . |
Modifier and Type | Method and Description |
---|---|
Value |
getValue(String name,
Set<Annotation> qualifiers)
Returns a
Value suitable for the supplied name by
making use of the System.getProperty(String) method. |
public SystemPropertiesSource()
SystemPropertiesSource
.public Value getValue(String name, Set<Annotation> qualifiers)
Value
suitable for the supplied name
by
making use of the System.getProperty(String)
method.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.getProperty(String)
with the
supplied name
returns null
NullPointerException
- if either name
or qualifiers
is null
null
.Copyright © 2019–2020, microBean™. All rights reserved.