/** * Applies the requested changes in a container configuration. * * @param newConfig The container configuration object to modify. * @param setContainers A map from container name to container to * add/modify. * @param removeContainers A set of names of containers to remove. * @throws ContainerConfigException If there was a problem setting the new * configuration. */ protected void changeContainersInConfig(BasicContainerConfig newConfig, Map<String, Map<String, Object>> setContainers, Set<String> removeContainers) throws ContainerConfigException { newConfig.config.putAll(setContainers); for (String container : removeContainers) { newConfig.config.remove(container); } for (String container : newConfig.config.keySet()) { newConfig.config.put(container, mergeParents(container, newConfig.config)); } }
/** * Applies the requested changes in a container configuration. * * @param newConfig The container configuration object to modify. * @param setContainers A map from container name to container to * add/modify. * @param removeContainers A set of names of containers to remove. * @throws ContainerConfigException If there was a problem setting the new * configuration. */ protected void changeContainersInConfig(BasicContainerConfig newConfig, Map<String, Map<String, Object>> setContainers, Set<String> removeContainers) throws ContainerConfigException { newConfig.config.putAll(setContainers); for (String container : removeContainers) { newConfig.config.remove(container); } for (String container : newConfig.config.keySet()) { newConfig.config.put(container, mergeParents(container, newConfig.config)); } }
/** * Applies the requested changes in a container configuration. * * @param newConfig The container configuration object to modify. * @param setContainers A map from container name to container to * add/modify. * @param removeContainers A set of names of containers to remove. * @throws ContainerConfigException If there was a problem setting the new * configuration. */ protected void changeContainersInConfig(BasicContainerConfig newConfig, Map<String, Map<String, Object>> setContainers, Set<String> removeContainers) throws ContainerConfigException { newConfig.config.putAll(setContainers); for (String container : removeContainers) { newConfig.config.remove(container); } for (String container : newConfig.config.keySet()) { newConfig.config.put(container, mergeParents(container, newConfig.config)); } }
"Unable to locate parent '" + parent + "' required by " + container.get(CONTAINER_KEY)); return mergeObjects(mergeParents(parent, config), container);
"Unable to locate parent '" + parent + "' required by " + container.get(CONTAINER_KEY)); return mergeObjects(mergeParents(parent, config), container);
"Unable to locate parent '" + parent + "' required by " + container.get(CONTAINER_KEY)); return mergeObjects(mergeParents(parent, config), container);