/** * Check if the specified FrameworkAdmin is available. * * @param fwAdmin * @throws FrameworkAdminRuntimeException */ public static void checkAvailability(FrameworkAdmin fwAdmin) throws FrameworkAdminRuntimeException { if (!fwAdmin.isActive()) throw new FrameworkAdminRuntimeException("FrameworkAdmin creates this object is no more available.", FrameworkAdminRuntimeException.FRAMEWORKADMIN_UNAVAILABLE); //$NON-NLS-1$ }
private void updateAccordingToExpectedState(BundlesState bundlesState) { // File newFwJar = EquinoxBundlesState.getFwJar(launcherData, configData); // if (bundlesState instanceof EquinoxBundlesState) // ((EquinoxBundlesState) bundlesState).setFwJar(newFwJar); // // if (launcherData.getFwJar() == null && newFwJar != null) // launcherData.setFwJar(newFwJar); BundleInfo[] newBundleInfos = bundlesState.getExpectedState(); configData.setBundles(newBundleInfos); }
public LauncherData(String fwName, String fwVersion, String launcherName, String launcherVersion) { this.fwName = fwName; this.fwVersion = fwVersion; this.launcherName = launcherName; this.launcherVersion = launcherVersion; this.initialize(); }
private int getStartLevel(int startLevel) { return (startLevel == BundleInfo.NO_LEVEL ? manipulator.getConfigData().getInitialBundleStartLevel() : startLevel); }
void setFwJar(File fwJar) { manipulator.getLauncherData().setFwJar(fwJar); }
/** * 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(); }
public ConfigData(String fwName, String fwVersion, String launcherName, String launcherVersion) { this.fwName = fwName; this.fwVersion = fwVersion; this.launcherName = launcherName; this.launcherVersion = launcherVersion; this.initialize(); }
public void setJvm(File file) { this.jvm = file; if (file == null) removeProgramArg("-vm"); //$NON-NLS-1$ }
private int getStartLevel(int startLevel) { return (startLevel == BundleInfo.NO_LEVEL ? manipulator.getConfigData().getInitialBundleStartLevel() : startLevel); }
/** * Check if the specified FrameworkAdmin is available. * * @param fwAdmin * @throws FrameworkAdminRuntimeException */ public static void checkAvailability(FrameworkAdmin fwAdmin) throws FrameworkAdminRuntimeException { if (!fwAdmin.isActive()) throw new FrameworkAdminRuntimeException("FrameworkAdmin creates this object is no more available.", FrameworkAdminRuntimeException.FRAMEWORKADMIN_UNAVAILABLE); }
private void updateAccordingToExpectedState(BundlesState bundlesState) { // File newFwJar = EquinoxBundlesState.getFwJar(launcherData, configData); // if (bundlesState instanceof EquinoxBundlesState) // ((EquinoxBundlesState) bundlesState).setFwJar(newFwJar); // // if (launcherData.getFwJar() == null && newFwJar != null) // launcherData.setFwJar(newFwJar); BundleInfo[] newBundleInfos = bundlesState.getExpectedState(); configData.setBundles(newBundleInfos); }
/** * 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(); }
public ConfigData(String fwName, String fwVersion, String launcherName, String launcherVersion) { this.fwName = fwName; this.fwVersion = fwVersion; this.launcherName = launcherName; this.launcherVersion = launcherVersion; this.initialize(); }
public void setJvm(File file) { this.jvm = file; if (file == null) removeProgramArg("-vm"); //$NON-NLS-1$ }
public LauncherData(String fwName, String fwVersion, String launcherName, String launcherVersion) { this.fwName = fwName; this.fwVersion = fwVersion; this.launcherName = launcherName; this.launcherVersion = launcherVersion; this.initialize(); }
/** * Check if the specified FrameworkAdmin is available. * * @param fwAdmin * @throws FrameworkAdminRuntimeException */ public static void checkAvailability(FrameworkAdmin fwAdmin) throws FrameworkAdminRuntimeException { if (!fwAdmin.isActive()) throw new FrameworkAdminRuntimeException("FrameworkAdmin creates this object is no more available.", FrameworkAdminRuntimeException.FRAMEWORKADMIN_UNAVAILABLE); //$NON-NLS-1$ }
public ConfigData(String fwName, String fwVersion, String launcherName, String launcherVersion) { this.fwName = fwName; this.fwVersion = fwVersion; this.launcherName = launcherName; this.launcherVersion = launcherVersion; this.initialize(); }
public BundleInfo[] getExpectedState() throws FrameworkAdminRuntimeException { if (!fwAdmin.isActive()) throw new FrameworkAdminRuntimeException("FrameworkAdmin creates this object is no more available.", FrameworkAdminRuntimeException.FRAMEWORKADMIN_UNAVAILABLE); //$NON-NLS-1$ return Utils.getBundleInfosFromList(this.bundleInfosList); }
public BundleInfo[] getExpectedState() throws FrameworkAdminRuntimeException { if (!fwAdmin.isActive()) throw new FrameworkAdminRuntimeException("FrameworkAdmin creates this object is no more available.", FrameworkAdminRuntimeException.FRAMEWORKADMIN_UNAVAILABLE); return Utils.getBundleInfosFromList(this.bundleInfosList); }
@Override public BundleInfo[] getExpectedState() throws FrameworkAdminRuntimeException { if (!fwAdmin.isActive()) throw new FrameworkAdminRuntimeException("FrameworkAdmin creates this object is no more available.", FrameworkAdminRuntimeException.FRAMEWORKADMIN_UNAVAILABLE); //$NON-NLS-1$ return Utils.getBundleInfosFromList(this.bundleInfosList); }