-
- All Implemented Interfaces:
public final class FallbackSupplier<ValueType extends Object> extends ConfigValueSupplier<ValueType>
A ConfigValueSupplier which searches through multiple ConfigValueSuppliers, in order, to find a value.
Note that a FallbackSupplier is never deprecated, only the suppliers it checks can be, so we also pass noDeprecation to ConfigValueSupplier.
-
-
Constructor Summary
Constructors Constructor Description FallbackSupplier(List<ConfigValueSupplier<ValueType>> suppliers)
-
Method Summary
Modifier and Type Method Description FallbackSupplier<ValueType>withDeprecation(Deprecation deprecation)Apply a Deprecation to this ConfigValueSupplier. StringtoString()-
-
Constructor Detail
-
FallbackSupplier
FallbackSupplier(List<ConfigValueSupplier<ValueType>> suppliers)
-
-
Method Detail
-
withDeprecation
FallbackSupplier<ValueType> withDeprecation(Deprecation deprecation)
Apply a Deprecation to this ConfigValueSupplier. Deprecation is only applied to types where it makes sense (those which retrieve a value from an 'external' location--right now only ConfigSourceSupplier), however, types which wrap an inner supplier must pass the deprecation 'down' so it can be applied correctly by any supplier which should observe it.
-
-
-
-