public static class FallbackItemScorer.DynamicProvider extends java.lang.Object implements javax.inject.Provider<ItemScorer>
An item scorer provider for opportunistically creating fallback scorers. If a baseline scorer is configured, this provider returns a fallback scorer that uses it; otherwise, it just returns the primary scorer.
Constructor and Description |
---|
DynamicProvider(ItemScorer prim,
ItemScorer fb) |
Modifier and Type | Method and Description |
---|---|
ItemScorer |
get() |
@Inject public DynamicProvider(@PrimaryScorer ItemScorer prim, @Nullable @BaselineScorer ItemScorer fb)
public ItemScorer get()
get
in interface javax.inject.Provider<ItemScorer>