Add config initialization with a map of config items
This commit is contained in:
parent
2ecb292588
commit
eb880f5593
@ -61,6 +61,14 @@ public class Config {
|
||||
} else throw new EnvoyException("Malformed command line argument at position " + i);
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes config items from a map.
|
||||
*
|
||||
* @param items the items to include in this config
|
||||
* @since Envoy Common v0.1-beta
|
||||
*/
|
||||
public void load(Map<String, ConfigItem<?>> items) { this.items.putAll(items); }
|
||||
|
||||
/**
|
||||
* @return {@code true} if all mandatory config items are initialized
|
||||
* @since Envoy Common v0.1-beta
|
||||
|
Reference in New Issue
Block a user