Add config initialization with a map of config items
This commit is contained in:
		@@ -61,6 +61,14 @@ public class Config {
 | 
				
			|||||||
				} else throw new EnvoyException("Malformed command line argument at position " + i);
 | 
									} 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
 | 
						 * @return {@code true} if all mandatory config items are initialized
 | 
				
			||||||
	 * @since Envoy Common v0.1-beta
 | 
						 * @since Envoy Common v0.1-beta
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user