public PublishedConfigSet shallowCopy() { PublishedConfigSet that = new PublishedConfigSet(); for (Map.Entry<String, PublishedConfiguration> entry : configurations.entrySet()) { that.put(entry.getKey(), entry.getValue().shallowCopy()); } return that; } }
@Override public PublishedConfigSet getOrCreatePublishedConfigSet(String name) { PublishedConfigSet set = publishedConfigSets.get(name); if (set == null) { validator.validate(name); synchronized (publishedConfigSets) { // synchronized double check to ensure that there is never an overridden // config set created set = publishedConfigSets.get(name); if (set == null) { set = new PublishedConfigSet(); publishedConfigSets.put(name, set); } } } return set; }
public PublishedConfigSet shallowCopy() { PublishedConfigSet that = new PublishedConfigSet(); for (Map.Entry<String, PublishedConfiguration> entry : configurations.entrySet()) { that.put(entry.getKey(), entry.getValue().shallowCopy()); } return that; } }
@Override public PublishedConfigSet getOrCreatePublishedConfigSet(String name) { PublishedConfigSet set = publishedConfigSets.get(name); if (set == null) { validator.validate(name); synchronized (publishedConfigSets) { // synchronized double check to ensure that there is never an overridden // config set created set = publishedConfigSets.get(name); if (set == null) { set = new PublishedConfigSet(); publishedConfigSets.put(name, set); } } } return set; }