@ApplicationScoped public class SourceOrderArbiter extends Arbiter
Arbiter implementation that performs arbitration
among Values by selecting the Value whose
affiliated Source
appears first in the Set of Sources supplied to the
arbitrate(Set, String, Set, Collection) method.arbitrate(Set, String, Set, Collection),
Arbiter,
Serialized Form| Constructor and Description |
|---|
SourceOrderArbiter()
Creates a new
SourceOrderArbiter. |
| Modifier and Type | Method and Description |
|---|---|
Value |
arbitrate(Set<? extends Source> sources,
String name,
Set<? extends Annotation> qualifiers,
Collection<? extends Value> values)
Performs value arbitration by considering
Values'
affiliated Sources
such that the Value whose Source appears earliest in the supplied sources Set will be selected. |
public SourceOrderArbiter()
SourceOrderArbiter.public Value arbitrate(Set<? extends Source> sources, String name, Set<? extends Annotation> qualifiers, Collection<? extends Value> values)
Values'
affiliated Sources
such that the Value whose Source appears earliest in the supplied sources Set will be selected.arbitrate in class Arbitersources - 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 SourceOrderArbiter 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.