public interface ExternalConfigSupplierRegistry
ExternalConfigSupplier instances to be registered, each with a unique name, for future
(deferred) lookup of configuration values.| Modifier and Type | Method and Description |
|---|---|
void |
addProvider(java.lang.String name,
ExternalConfigSupplier provider) |
java.lang.String |
getConfig(java.lang.String providerName,
java.lang.String key)
Searches the named
ExternalConfigSupplier for the config value associated with the specified key. |
void |
removeProvider(java.lang.String name) |
void addProvider(java.lang.String name,
ExternalConfigSupplier provider)
void removeProvider(java.lang.String name)
java.lang.String getConfig(java.lang.String providerName,
java.lang.String key)
ExternalConfigSupplier for the config value associated with the specified key.
Quietly returns null if no config exists for the specified key.
Throws IllegalArgumentException if no ExternalConfigSupplier exists for the passed name.