Package org.apache.karaf.features

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


                    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

                    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

                    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

                    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

                    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

                    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

            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

        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

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

TOP

Related Classes of org.apache.karaf.features.BundleInfo

Copyright © 2018 www.massapicom. 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.