Interface ConfigProvider
- All Known Implementing Classes:
AggregatePriorityListConfigProvider,EnvVarConfigProvider,PropertiesConfigProvider,YamlConfigProvider
public interface ConfigProvider
-
Method Summary
-
Method Details
-
getValue
Returns the value associated withkey, converted totype, or an emptyOptionalif the key is not set.- Type Parameters:
T- the value type- Parameters:
key- the dot-separated configuration key, e.g.josdk.cache.sync.timeouttype- the expected type of the value; supported types depend on the implementation- Returns:
- an
Optionalcontaining the typed value, or empty if the key is absent - Throws:
IllegalArgumentException- iftypeis not supported by the implementation
-