Examples of BundleInfo


Examples of org.apache.karaf.features.BundleInfo

        List<BundleInfo> bundles = new ArrayList<BundleInfo>();
        Collections.addAll(deploy, resolver.getAddedResources());
        Collections.addAll(deploy, resolver.getRequiredResources());
        for (Resource res : deploy) {
            BundleInfo info = infos.get(res);
            if (info == null) {
                Reason[] reasons = resolver.getReason(res);
                if (reasons != null) {
                    for (Reason r : reasons) {
                        info = infos.get(r);
View Full Code Here

Examples of org.apache.karaf.features.BundleInfo

                    if (state.installed.contains(b)
                            || (b.getState() != Bundle.STARTING && b.getState() != Bundle.ACTIVE
                                    && getStartLevel().isBundlePersistentlyStarted(b))) {
                      // do no start bundles when user request it
                      Long bundleId = b.getBundleId();
                      BundleInfo bundleInfo = state.bundleInfos.get(bundleId);
                        if (bundleInfo == null || bundleInfo.isStart()) {
                          try {
                              b.start();
                          } catch (BundleException be) {
                              String msg = format("Could not start bundle %s in feature(s) %s: %s", b.getLocation(), getFeaturesContainingBundleList(b), be.getMessage());
                              throw new Exception(msg, be);
View Full Code Here

Examples of org.apache.karaf.features.BundleInfo

                    if (state.installed.contains(b)
                            || (b.getState() != Bundle.STARTING && b.getState() != Bundle.ACTIVE
                            && getStartLevel().isBundlePersistentlyStarted(b))) {
                        // do no start bundles when user request it
                        Long bundleId = b.getBundleId();
                        BundleInfo bundleInfo = state.bundleInfos.get(bundleId);
                        if (bundleInfo == null || bundleInfo.isStart()) {
                            try {
                                if (!options.contains(Option.NoAutoStartBundles)) {
                                    b.start();
                                }
                            } catch (BundleException be) {
View Full Code Here

Examples of org.apache.karaf.features.BundleInfo

                    if (state.installed.contains(b)
                            || (b.getState() != Bundle.STARTING && b.getState() != Bundle.ACTIVE
                                    && getStartLevel().isBundlePersistentlyStarted(b))) {
                      // do no start bundles when user request it
                      Long bundleId = b.getBundleId();
                      BundleInfo bundleInfo = state.bundleInfos.get(bundleId);
                        if (bundleInfo == null || bundleInfo.isStart()) {
                          try {
                              b.start();
                          } catch (BundleException be) {
                              String msg = format("Could not start bundle %s in feature(s) %s: %s", b.getLocation(), getFeaturesContainingBundleList(b), be.getMessage());
                              throw new Exception(msg, be);
View Full Code Here

Examples of org.apache.karaf.features.BundleInfo

                    if (state.installed.contains(b)
                            || (b.getState() != Bundle.STARTING && b.getState() != Bundle.ACTIVE
                                    && getStartLevel().isBundlePersistentlyStarted(b))) {
                      // do no start bundles when user request it
                      Long bundleId = b.getBundleId();
                      BundleInfo bundleInfo = state.bundleInfos.get(bundleId);
                        if (bundleInfo == null || bundleInfo.isStart()) {
                          try {
                              b.start();
                          } catch (BundleException be) {
                              String msg = format("Could not start bundle %s in feature(s) %s: %s", b.getLocation(), getFeaturesContainingBundleList(b), be.getMessage());
                              throw new Exception(msg, be);
View Full Code Here

Examples of org.apache.karaf.features.BundleInfo

                    if (state.installed.contains(b)
                            || (b.getState() != Bundle.STARTING && b.getState() != Bundle.ACTIVE
                                    && getStartLevel().isBundlePersistentlyStarted(b))) {
                      // do no start bundles when user request it
                      Long bundleId = b.getBundleId();
                      BundleInfo bundleInfo = state.bundleInfos.get(bundleId);
                        if (bundleInfo == null || bundleInfo.isStart()) {
                          try {
                              b.start();
                          } catch (BundleException be) {
                              String msg = format("Could not start bundle %s in feature(s) %s: %s", b.getLocation(), getFeaturesContainingBundleList(b), be.getMessage());
                              throw new Exception(msg, be);
View Full Code Here

Examples of org.apache.karaf.features.BundleInfo

                    if (state.installed.contains(b)
                            || (b.getState() != Bundle.STARTING && b.getState() != Bundle.ACTIVE
                                    && getStartLevel().isBundlePersistentlyStarted(b))) {
                      // do no start bundles when user request it
                      Long bundleId = b.getBundleId();
                      BundleInfo bundleInfo = state.bundleInfos.get(bundleId);
                        if (bundleInfo == null || bundleInfo.isStart()) {
                          try {
                              b.start();
                          } catch (BundleException be) {
                              String msg = format("Could not start bundle %s in feature(s) %s: %s", b.getLocation(), getFeaturesContainingBundleList(b), be.getMessage());
                              throw new Exception(msg, be);
View Full Code Here

Examples of org.apache.karaf.features.BundleInfo

            Collections.addAll(deploy, resolver.getOptionalResources());
        }
        Collections.addAll(deploy, resolver.getAddedResources());
        deploy.addAll(featureDeploy);
        for (Resource res : deploy) {
            BundleInfo info = infos.get(res);
            if (info == null) {
                Reason[] reasons = resolver.getReason(res);
                if (reasons != null) {
                    for (Reason r : reasons) {
                        info = infos.get(r);
View Full Code Here

Examples of org.apache.karaf.features.BundleInfo

        List<BundleInfo> res = Overrides.override(
                Arrays.<BundleInfo>asList(new Bundle(c100.toURI().toString())),
                props.toURI().toString());
        assertNotNull(res);
        assertEquals(1, res.size());
        BundleInfo out = res.get(0);
        assertNotNull(out);
        assertEquals(c101.toURI().toString(), out.getLocation());
    }
View Full Code Here

Examples of org.eclipse.equinox.frameworkadmin.BundleInfo

            return new Status(IStatus.ERROR, ScalaJDTWeavingPlugin.ID, "Cannot get bundleContext", new Exception());
        }
       
        try {
            BundleInfo[] infos = manipulator.loadConfiguration(bundleContext, null);
            BundleInfo weavingInfo = null;
            for (BundleInfo info : infos) {
                if (info.getSymbolicName().equals("org.eclipse.equinox.weaving.aspectj")) {
                    weavingInfo = info;
                    break;
                }
            }
            if (weavingInfo == null) {
                return new Status(IStatus.ERROR, ScalaJDTWeavingPlugin.ID, "Could not find equinox aspects bundle", new Exception());
            }
           
            weavingInfo.setMarkedAsStarted(becomeEnabled);
           
            URL configURL = Platform.getConfigurationLocation().getURL();
            if (configURL == null || !"file".equals(configURL.getProtocol())) {
                throw new IOException("Platform configuration location is not found: " + configURL);
            }
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.