/** * Returns the Bundles that constitute this product. These * bundles may be specified in the .product file, .product file configuration * area, config.ini file, or a combination of these three places. */ public BundleInfo[] getBundles() { return configData.getBundles(); }
/** * Returns the Bundles that constitute this product. These * bundles may be specified in the .product file, .product file configuration * area, config.ini file, or a combination of these three places. */ public BundleInfo[] getBundles() { return configData.getBundles(); }
/** * Returns the Bundles that constitute this product. These * bundles may be specified in the .product file, .product file configuration * area, config.ini file, or a combination of these three places. */ @Override public BundleInfo[] getBundles() { return configData.getBundles(); }
@Override public BundleInfo[] getBundles() { return data.getBundles(); }
public BundleInfo[] getBundles() { return data.getBundles(); }
public BundleInfo[] getBundles() { return data.getBundles(); }
protected static File getSystemBundleFromBundleInfos(ConfigData configData) { BundleInfo[] bundleInfos = configData.getBundles(); return getSystemBundleFromBundleInfos(bundleInfos); }
protected static File getSystemBundleFromBundleInfos(ConfigData configData) { BundleInfo[] bundleInfos = configData.getBundles(); return getSystemBundleFromBundleInfos(bundleInfos); }
public BundleInfo[] getBundlesBeingRun() { return getFrameworkManipulator().getConfigData().getBundles(); }
public BundleInfo[] getBundlesBeingRun() { return getFrameworkManipulator().getConfigData().getBundles(); }
private void addProductFileBundles(ConfigData data) { List<IVersionedId> bundles = product.getBundles(true); Set<BundleInfo> set = new HashSet<BundleInfo>(); set.addAll(Arrays.asList(data.getBundles())); for (IVersionedId vid : bundles) { BundleInfo bundleInfo = new BundleInfo(); bundleInfo.setSymbolicName(vid.getId()); bundleInfo.setVersion(vid.getVersion().toString()); if (!set.contains(bundleInfo)) data.addBundle(bundleInfo); } }
public BundleInfo[] save(Manipulator manipulator, boolean backup) throws IOException { List<BundleInfo> setToInitialConfig = new LinkedList<BundleInfo>(); List<BundleInfo> setToSimpleConfig = new LinkedList<BundleInfo>(); ConfigData configData = manipulator.getConfigData(); if (!divideBundleInfos(manipulator, setToInitialConfig, setToSimpleConfig, configData.getInitialBundleStartLevel())) return configData.getBundles(); File outputFile = getConfigFile(manipulator); URI installArea = ParserUtils.getOSGiInstallArea(Arrays.asList(manipulator.getLauncherData().getProgramArgs()), manipulator.getConfigData().getProperties(), manipulator.getLauncherData()).toURI(); saveConfiguration(setToSimpleConfig.toArray(new BundleInfo[setToSimpleConfig.size()]), outputFile, installArea, backup); configData.setProperty(SimpleConfiguratorManipulatorImpl.PROP_KEY_CONFIGURL, outputFile.toURL().toExternalForm()); return orderingInitialConfig(setToInitialConfig); }
private void addProductFileBundles(ConfigData data) { List<IVersionedId> bundles = product.getBundles(true); Set<BundleInfo> set = new HashSet<BundleInfo>(); set.addAll(Arrays.asList(data.getBundles())); for (IVersionedId vid : bundles) { BundleInfo bundleInfo = new BundleInfo(); bundleInfo.setSymbolicName(vid.getId()); bundleInfo.setVersion(vid.getVersion().toString()); if (!set.contains(bundleInfo)) data.addBundle(bundleInfo); } }
private void addProductFileBundles(ConfigData data) { List<IVersionedId> bundles = product.getBundles(true); Set<BundleInfo> set = new HashSet<>(); set.addAll(Arrays.asList(data.getBundles())); for (IVersionedId vid : bundles) { BundleInfo bundleInfo = new BundleInfo(); bundleInfo.setSymbolicName(vid.getId()); bundleInfo.setVersion(vid.getVersion().toString()); if (!set.contains(bundleInfo)) data.addBundle(bundleInfo); } }
public BundleInfo[] save(Manipulator manipulator, boolean backup) throws IOException { List setToInitialConfig = new LinkedList(); List setToSimpleConfig = new LinkedList(); ConfigData configData = manipulator.getConfigData(); if (!divideBundleInfos(manipulator, setToInitialConfig, setToSimpleConfig, configData.getInitialBundleStartLevel())) return configData.getBundles(); File outputFile = getConfigFile(manipulator); URI installArea = ParserUtils.getOSGiInstallArea(Arrays.asList(manipulator.getLauncherData().getProgramArgs()), manipulator.getConfigData().getProperties(), manipulator.getLauncherData()).toURI(); saveConfiguration((BundleInfo[]) setToSimpleConfig.toArray(new BundleInfo[setToSimpleConfig.size()]), outputFile, installArea, backup); configData.setProperty(SimpleConfiguratorManipulatorImpl.PROP_KEY_CONFIGURL, outputFile.toURL().toExternalForm()); return orderingInitialConfig(setToInitialConfig); }
public BundleInfo[] save(Manipulator manipulator, boolean backup) throws IOException { List<BundleInfo> setToInitialConfig = new LinkedList<BundleInfo>(); List<BundleInfo> setToSimpleConfig = new LinkedList<BundleInfo>(); ConfigData configData = manipulator.getConfigData(); if (!divideBundleInfos(manipulator, setToInitialConfig, setToSimpleConfig, configData.getInitialBundleStartLevel())) return configData.getBundles(); File outputFile = getConfigFile(manipulator); URI installArea = ParserUtils.getOSGiInstallArea(Arrays.asList(manipulator.getLauncherData().getProgramArgs()), manipulator.getConfigData().getProperties(), manipulator.getLauncherData()).toURI(); saveConfiguration(setToSimpleConfig.toArray(new BundleInfo[setToSimpleConfig.size()]), outputFile, installArea, backup); configData.setProperty(SimpleConfiguratorManipulatorImpl.PROP_KEY_CONFIGURL, outputFile.toURL().toExternalForm()); return orderingInitialConfig(setToInitialConfig); }
private void initialize() { this.bundleInfosList.clear(); LauncherData launcherData = manipulator.getLauncherData(); ConfigData configData = manipulator.getConfigData(); File fwJar = getFwJar(launcherData);; if (fwJar == null) throw new IllegalStateException("launcherData.getLauncherConfigFile() == null && fwJar is not set."); // No fw persistent data location is taken into consideration. BundleInfo[] bInfos = configData.getBundles(); for (int j = 0; j < bInfos.length; j++) this.installBundle(bInfos[j]); if (getSystemBundle() == null) { BundleInfo sysBInfo = new BundleInfo(launcherData.getFwJar().toURI(), 0, true); sysBInfo.setBundleId(0); this.installBundle(sysBInfo); } }
private void initialize() { this.bundleInfosList.clear(); LauncherData launcherData = manipulator.getLauncherData(); ConfigData configData = manipulator.getConfigData(); File fwJar = getFwJar(launcherData); if (fwJar == null) throw new IllegalStateException("launcherData.getLauncherConfigFile() == null && fwJar is not set."); //$NON-NLS-1$ // No fw persistent data location is taken into consideration. BundleInfo[] bInfos = configData.getBundles(); for (int j = 0; j < bInfos.length; j++) this.installBundle(bInfos[j]); if (getSystemBundle() == null) { BundleInfo sysBInfo = new BundleInfo(launcherData.getFwJar().toURI(), 0, true); sysBInfo.setBundleId(0); this.installBundle(sysBInfo); } }
private void initialize() { this.bundleInfosList.clear(); LauncherData launcherData = manipulator.getLauncherData(); ConfigData configData = manipulator.getConfigData(); File fwJar = getFwJar(launcherData); if (fwJar == null) throw new IllegalStateException("launcherData.getLauncherConfigFile() == null && fwJar is not set."); //$NON-NLS-1$ // No fw persistent data location is taken into consideration. BundleInfo[] bInfos = configData.getBundles(); for (int j = 0; j < bInfos.length; j++) this.installBundle(bInfos[j]); if (getSystemBundle() == null) { BundleInfo sysBInfo = new BundleInfo(launcherData.getFwJar().toURI(), 0, true); sysBInfo.setBundleId(0); this.installBundle(sysBInfo); } }
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()); } }