public void commit() throws ContainerConfigException { if (throwException != null) { throw throwException; } Set<String> removed = Sets.newHashSet(); Set<String> changed = Sets.newHashSet(); synchronized (BasicContainerConfig.this) { BasicContainerConfig tmpConfig = getTemporaryConfig(!clear); changeContainersInConfig(tmpConfig, setContainers, removeContainers); // This point will not be reached if an exception was thrown. diffConfiguration(tmpConfig, changed, removed); setNewConfig(tmpConfig); } notifyObservers(changed, removed); }
public void commit() throws ContainerConfigException { if (throwException != null) { throw throwException; } Set<String> removed = Sets.newHashSet(); Set<String> changed = Sets.newHashSet(); synchronized (BasicContainerConfig.this) { BasicContainerConfig tmpConfig = getTemporaryConfig(!clear); changeContainersInConfig(tmpConfig, setContainers, removeContainers); // This point will not be reached if an exception was thrown. diffConfiguration(tmpConfig, changed, removed); setNewConfig(tmpConfig); } notifyObservers(changed, removed); }
public void commit() throws ContainerConfigException { if (throwException != null) { throw throwException; } Set<String> removed = Sets.newHashSet(); Set<String> changed = Sets.newHashSet(); synchronized (BasicContainerConfig.this) { BasicContainerConfig tmpConfig = getTemporaryConfig(!clear); changeContainersInConfig(tmpConfig, setContainers, removeContainers); // This point will not be reached if an exception was thrown. diffConfiguration(tmpConfig, changed, removed); setNewConfig(tmpConfig); } notifyObservers(changed, removed); }