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
Values 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
Values 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 Sources 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 nullqualifiers - the Set of qualifier Annotations 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 Values 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 ValueNullPointerException - if any parameter value is nullArbitrationException - if there was a procedural problem
with arbitrationCopyright © 2019–2020, microBean™. All rights reserved.