public DeploymentProperties(Properties props) { super(); putAll(props); }
public DeploymentProperties(Map map) { super(); if (map == null) { return; } Properties props = new Properties(); for (Iterator itr = map.keySet().iterator(); itr.hasNext();) { String mapKey = (String) itr.next(); String mapValue = (String) map.get(mapKey); String propsKey = (String) keyMap.get(mapKey); if (mapValue != null) { // for public keys, we need to convert if (propsKey != null) { props.put(propsKey, mapValue); } // for internal keys and new keys, we just add it // without conversion else { props.put(mapKey, mapValue); } } } putAll(props); }