Package org.apache.karaf.features

Examples of org.apache.karaf.features.BundleInfo


        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(b102.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(b110.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(b100.toURI().toString(), out.getLocation());
    }
View Full Code Here

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

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

                    if (state.installed.contains(b)
                            || (b.getState() != Bundle.STARTING && b.getState() != Bundle.ACTIVE
                            && 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

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.