public void setConfigData(ConfigData configData) { this.configData.initialize(); this.configData.setInitialBundleStartLevel(configData.getInitialBundleStartLevel()); this.configData.setBeginningFwStartLevel(configData.getBeginingFwStartLevel()); BundleInfo[] bInfos = configData.getBundles(); for (int i = 0; i < bInfos.length; i++) this.configData.addBundle(bInfos[i]); this.configData.setProperties(configData.getProperties()); if (this.configData.getFwName().equals(configData.getFwName())) if (this.configData.getFwVersion().equals(configData.getFwVersion())) { // TODO refine the algorithm to copying fw dependent props. // configData.getFwName()/getFwVersion()/ // getLauncherName()/getLauncherVersion() might be taken into consideration. this.configData.setProperties(configData.getProperties()); } }
@Override public void setConfigData(ConfigData configData) { this.configData.initialize(); this.configData.setInitialBundleStartLevel(configData.getInitialBundleStartLevel()); this.configData.setBeginningFwStartLevel(configData.getBeginingFwStartLevel()); BundleInfo[] bInfos = configData.getBundles(); for (int i = 0; i < bInfos.length; i++) this.configData.addBundle(bInfos[i]); this.configData.setProperties(configData.getProperties()); if (this.configData.getFwName().equals(configData.getFwName())) if (this.configData.getFwVersion().equals(configData.getFwVersion())) { // TODO refine the algorithm to copying fw dependent props. // configData.getFwName()/getFwVersion()/ // getLauncherName()/getLauncherVersion() might be taken into consideration. this.configData.setProperties(configData.getProperties()); } }