public abstract class Arbiter extends Object implements Serializable
Settings
instance in cases where setting values would
otherwise be indistinguishable from one another.Modifier | Constructor and Description |
---|---|
protected |
Arbiter()
Creates a new
Arbiter . |
Modifier and Type | Method and Description |
---|---|
abstract Value |
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). |
public abstract Value arbitrate(Set<? extends Source> sources, String name, Set<? extends Annotation> qualifiers, Collection<? extends Value> values)
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).sources
- the Set
of Source
s in effect
during the current value acquisition operation; must not be
null
; must be unmodifiable; must be safe for
concurrent read-only access by multiple threadsname
- the name of the setting value being sought; must not
be null
qualifiers
- the Set
of qualifier Annotation
s in effect during the current value acquisition
operation; must not be null
; must be unmodifiable; must be safe for
concurrent read-only access by multiple threadsvalues
- the Collection
of Value
s acquired
during the current value acquisition operation that were deemed
to be indistinguishable; must not be null
; must be
unmodifiable; must
be safe for concurrent read-only access by multiple threadsValue
, or null
if this Arbiter
could not select
a single Value
NullPointerException
- if any parameter value is null
ArbitrationException
- if there was a procedural problem
with arbitrationCopyright © 2019–2020, microBean™. All rights reserved.