Package org.osgi.service.packageadmin

Examples of org.osgi.service.packageadmin.PackageAdmin.refreshPackages()


            if (pa == null) {
                System.out.println("PackageAdmin service is unavailable.");
                return;
            }
            if (bundles.isEmpty()) {
                pa.refreshPackages(null);
            }
            else {
                pa.refreshPackages(bundles.toArray(new Bundle[bundles.size()]));
            }
        }
View Full Code Here


            }
            if (bundles.isEmpty()) {
                pa.refreshPackages(null);
            }
            else {
                pa.refreshPackages(bundles.toArray(new Bundle[bundles.size()]));
            }
        }
        finally {
            getBundleContext().ungetService(ref);
        }
View Full Code Here

            }
        }

        PackageAdmin packageAdmin = getPackageAdmin();
        if (packageAdmin != null) {
            packageAdmin.refreshPackages(null);
        }
    }

    protected File createBundleJar(File dir) throws BundleException, IOException {
        Jar jar = new Jar();
View Full Code Here

                PackageAdmin pa = (PackageAdmin) bundleContext.getService(ref);
                if (pa == null) {
                    LOGGER.error("PackageAdmin service is unavailable.");
                    return;
                }
                pa.refreshPackages(new Bundle[]{sr[0].getBundle()});
            }
            finally {
                bundleContext.ungetService(ref);
            }
        } catch (InvalidSyntaxException ex) {
View Full Code Here

                packageAdmin.resolveBundles(bundleSet);

                if (isFragmentBundle(bundle) == false) {
                    bundlesToStart.offer(bundle);
                    // async operation
                    packageAdmin.refreshPackages(bundleSet);
                }
            } else {
        bundle = bundleContext.installBundle(location, in);
                if (isFragmentBundle(bundle) == false) {
                    bundle.start();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.