Package | Description |
---|---|
org.microbean.settings |
Modifier and Type | Class and Description |
---|---|
class |
EnvironmentVariablesSource
A
Source that retrieves values from environment variables. |
class |
Settings
|
class |
SystemPropertiesSource
A
Source that retrieves values from system properties. |
Modifier and Type | Method and Description |
---|---|
Source |
Value.getSource()
|
Modifier and Type | Method and Description |
---|---|
protected Value |
Settings.getValue(Source source,
String name,
Set<Annotation> qualifiers)
Given a
Source , a name of a setting and a (possibly
null ) Set of qualifying Annotation s,
returns a Value for the supplied name originating
from the supplied Source . |
Modifier and Type | Method and Description |
---|---|
Value |
SourceOrderArbiter.arbitrate(Set<? extends Source> sources,
String name,
Set<? extends Annotation> qualifiers,
Collection<? extends Value> values)
Performs value arbitration by considering
Value s'
affiliated Source s
such that the Value whose Source appears earliest in the supplied sources Set will be selected. |
abstract Value |
Arbiter.arbitrate(Set<? extends Source> sources,
String name,
Set<? extends Annotation> qualifiers,
Collection<? extends Value> values)
Performs value arbitration on a
Collection of
Value s that (normally) a Settings instance
determined were indistinguishable during value acquisition, and
returns the Value to be used instead (normally drawn from
the Collection according to some heuristic). |
protected Value |
Settings.arbitrate(Set<? extends Source> sources,
String name,
Set<Annotation> qualifiers,
Collection<? extends Value> values)
Performs value arbitration on a
Collection of
Value s that this Settings instance determined
were indistinguishable during value acquisition, and returns the
Value to be used instead (normally drawn from the Collection according to some heuristic). |
Constructor and Description |
---|
Value(Source source,
String name,
Set<Annotation> qualifiers,
boolean authoritative,
String value)
Creates a new
Value . |
Value(Source source,
String name,
Set<Annotation> qualifiers,
boolean authoritative,
Supplier<? extends String> valueSupplier)
Creates a new
Value . |
Value(Source source,
String name,
Set<Annotation> qualifiers,
String value)
Creates a new
Value . |
Value(Source source,
String name,
Set<Annotation> qualifiers,
Supplier<? extends String> valueSupplier)
Creates a new
Value . |
Constructor and Description |
---|
Settings(BiFunction<? super String,? super Set<Annotation>,? extends Set<? extends Source>> sourcesFunction,
ConverterProvider converterProvider,
Iterable<? extends Arbiter> arbiters)
Creates a new
Settings . |
Settings(Set<Annotation> qualifiers,
BiFunction<? super String,? super Set<Annotation>,? extends Set<? extends Source>> sourcesFunction,
ConverterProvider converterProvider,
Iterable<? extends Arbiter> arbiters)
Creates a new
Settings . |
Copyright © 2019–2020, microBean™. All rights reserved.