private Manipulator getFrameworkManipulator() { FrameworkAdmin fwAdmin = getFrameworkAdmin(); if (fwAdmin != null) return fwAdmin.getManipulator(); return null; }
/** * 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 Manipulator getFrameworkManipulator() { FrameworkAdmin fwAdmin = LazyManipulator.getFrameworkAdmin(); if (fwAdmin != null) return fwAdmin.getRunningManipulator(); return null; } }
private Manipulator getFrameworkManipulator() { FrameworkAdmin fwAdmin = getFrameworkAdmin(); if (fwAdmin != null) return fwAdmin.getManipulator(); return null; }
/** * 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 Manipulator getFrameworkManipulator() { FrameworkAdmin fwAdmin = LazyManipulator.getFrameworkAdmin(); if (fwAdmin != null) return fwAdmin.getRunningManipulator(); return null; } }
/** * Obtains the framework manipulator instance. Throws an exception * if it could not be created. */ private void getFrameworkManipulator() { FrameworkAdmin admin = getFrameworkAdmin(); if (admin == null) throw new RuntimeException("Framework admin service not found"); //$NON-NLS-1$ manipulator = admin.getManipulator(); if (manipulator == null) throw new RuntimeException("Framework manipulator not found"); //$NON-NLS-1$ }
/** * 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$ }
/** * Obtains the framework manipulator instance. Throws an exception * if it could not be created. */ private void getFrameworkManipulator() { FrameworkAdmin admin = getFrameworkAdmin(); if (admin == null) throw new RuntimeException("Framework admin service not found"); //$NON-NLS-1$ manipulator = admin.getManipulator(); if (manipulator == null) throw new RuntimeException("Framework manipulator not found"); //$NON-NLS-1$ }
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); }
/** * Obtains the framework manipulator instance. Throws an exception * if it could not be created. */ private void getFrameworkManipulator() { FrameworkAdmin admin = getFrameworkAdmin(); if (admin == null) throw new RuntimeException("Framework admin service not found"); //$NON-NLS-1$ manipulator = admin.getManipulator(); if (manipulator == null) throw new RuntimeException("Framework manipulator not found"); //$NON-NLS-1$ }
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); }
/** * If the manifest of the target fw implementation has Constants.BUNDLE_SYMBOLICNAME header, * this constructor should be used. * * @param ManipulatorAdmin * @param Manipulator * @param systemBundleSymbolicName */ public SimpleBundlesState(FrameworkAdmin ManipulatorAdmin, Manipulator Manipulator, String systemBundleSymbolicName) { super(); this.fwAdmin = ManipulatorAdmin; // copy Manipulator object for avoiding modifying the parameters of the Manipulator. this.manipulator = ManipulatorAdmin.getManipulator(); this.manipulator.setConfigData(Manipulator.getConfigData()); this.manipulator.setLauncherData(Manipulator.getLauncherData()); this.systemBundleSymbolicName = systemBundleSymbolicName; this.systemBundleName = null; this.systemBundleVendor = null; initialize(); }
@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); }
Manipulator manipulator = fwAdmin.getManipulator(); ConfigData configData = new ConfigData(null, null, null, null);
/** * If the manifest of the target fw implementation has Constants.BUNDLE_SYMBOLICNAME header, * this constructor should be used. * * @param ManipulatorAdmin * @param Manipulator * @param systemBundleSymbolicName */ public SimpleBundlesState(FrameworkAdmin ManipulatorAdmin, Manipulator Manipulator, String systemBundleSymbolicName) { super(); this.fwAdmin = ManipulatorAdmin; // copy Manipulator object for avoiding modifying the parameters of the Manipulator. this.manipulator = ManipulatorAdmin.getManipulator(); this.manipulator.setConfigData(Manipulator.getConfigData()); this.manipulator.setLauncherData(Manipulator.getLauncherData()); this.systemBundleSymbolicName = systemBundleSymbolicName; this.systemBundleName = null; this.systemBundleVendor = null; initialize(); }
/** * If the manifest of the target fw implementation has Constants.BUNDLE_SYMBOLICNAME header, * this constructor should be used. * * @param ManipulatorAdmin * @param Manipulator * @param systemBundleSymbolicName */ public SimpleBundlesState(FrameworkAdmin ManipulatorAdmin, Manipulator Manipulator, String systemBundleSymbolicName) { super(); this.fwAdmin = ManipulatorAdmin; // copy Manipulator object for avoiding modifying the parameters of the Manipulator. this.manipulator = ManipulatorAdmin.getManipulator(); this.manipulator.setConfigData(Manipulator.getConfigData()); this.manipulator.setLauncherData(Manipulator.getLauncherData()); this.systemBundleSymbolicName = systemBundleSymbolicName; this.systemBundleName = null; this.systemBundleVendor = null; initialize(); }
/** * If the manifest of the target fw implementation has not Constants.BUNDLE_SYMBOLICNAME header * but , Constants.BUNDLE_NAME and BUNDLE_VERSION, * this constructor should be used. * * @param ManipulatorAdmin * @param Manipulator * @param systemBundleName * @param systemBundleVender */ public SimpleBundlesState(FrameworkAdmin ManipulatorAdmin, Manipulator Manipulator, String systemBundleName, String systemBundleVender) { super(); this.fwAdmin = ManipulatorAdmin; // copy Manipulator object for avoiding modifying the parameters of the Manipulator. this.manipulator = ManipulatorAdmin.getManipulator(); this.manipulator.setConfigData(Manipulator.getConfigData()); this.manipulator.setLauncherData(Manipulator.getLauncherData()); this.systemBundleSymbolicName = null; this.systemBundleName = systemBundleName; this.systemBundleVendor = systemBundleVender; initialize(); }
/** * If the manifest of the target fw implementation has not Constants.BUNDLE_SYMBOLICNAME header * but , Constants.BUNDLE_NAME and BUNDLE_VERSION, * this constructor should be used. * * @param ManipulatorAdmin * @param Manipulator * @param systemBundleName * @param systemBundleVender */ public SimpleBundlesState(FrameworkAdmin ManipulatorAdmin, Manipulator Manipulator, String systemBundleName, String systemBundleVender) { super(); this.fwAdmin = ManipulatorAdmin; // copy Manipulator object for avoiding modifying the parameters of the Manipulator. this.manipulator = ManipulatorAdmin.getManipulator(); this.manipulator.setConfigData(Manipulator.getConfigData()); this.manipulator.setLauncherData(Manipulator.getLauncherData()); this.systemBundleSymbolicName = null; this.systemBundleName = systemBundleName; this.systemBundleVendor = systemBundleVender; initialize(); }
/** * If the manifest of the target fw implementation has not Constants.BUNDLE_SYMBOLICNAME header * but , Constants.BUNDLE_NAME and BUNDLE_VERSION, * this constructor should be used. * * @param ManipulatorAdmin * @param Manipulator * @param systemBundleName * @param systemBundleVender */ public SimpleBundlesState(FrameworkAdmin ManipulatorAdmin, Manipulator Manipulator, String systemBundleName, String systemBundleVender) { super(); this.fwAdmin = ManipulatorAdmin; // copy Manipulator object for avoiding modifying the parameters of the Manipulator. this.manipulator = ManipulatorAdmin.getManipulator(); this.manipulator.setConfigData(Manipulator.getConfigData()); this.manipulator.setLauncherData(Manipulator.getLauncherData()); this.systemBundleSymbolicName = null; this.systemBundleName = systemBundleName; this.systemBundleVendor = systemBundleVender; initialize(); }