Examples of findBundle()


Examples of com.dubture.symfony.core.model.SymfonyModelAccess.findBundle()

  {

      SymfonyModelAccess modelAccess = SymfonyModelAccess.getDefault();
      IPath truncated = webpath.removeFirstSegments(2);
      String bundleName = truncated.segment(0) + "bundle";
      Bundle bundle = modelAccess.findBundle(bundleName, project);
     
      if (bundle == null) {
          return null;
      }
     
View Full Code Here

Examples of io.fabric8.utils.BundleUtils.findBundle()

        return response != null && (response.toLowerCase().equals("yes") || response.toLowerCase().equals("y"));
    }

    public void installBundles() throws BundleException {
        BundleUtils bundleUtils = new BundleUtils(bundleContext);
        Bundle bundleFabricCommands = bundleUtils.findBundle("io.fabric8.fabric-commands");
        if (bundleFabricCommands == null) {
            bundleFabricCommands = bundleUtils.installBundle("mvn:io.fabric8/fabric-commands/" + FabricConstants.FABRIC_VERSION);
        }
        bundleFabricCommands.start();
        Bundle bundleFabricAgent = bundleUtils.findBundle("io.fabric8.fabric-agent");
View Full Code Here

Examples of io.fabric8.utils.BundleUtils.findBundle()

        Bundle bundleFabricCommands = bundleUtils.findBundle("io.fabric8.fabric-commands");
        if (bundleFabricCommands == null) {
            bundleFabricCommands = bundleUtils.installBundle("mvn:io.fabric8/fabric-commands/" + FabricConstants.FABRIC_VERSION);
        }
        bundleFabricCommands.start();
        Bundle bundleFabricAgent = bundleUtils.findBundle("io.fabric8.fabric-agent");

        if (nonManaged && bundleFabricAgent == null) {
            //do nothing
        } else if (nonManaged && bundleFabricAgent != null) {
            bundleFabricAgent.stop();
View Full Code Here

Examples of io.fabric8.utils.BundleUtils.findBundle()

        bundleUtils.findAndStopBundle("io.fabric8.fabric-agent");
    }

    private void startBundles(CreateEnsembleOptions options) throws BundleException {
        BundleUtils bundleUtils = new BundleUtils(bundleContext);
        Bundle agentBundle = bundleUtils.findBundle("io.fabric8.fabric-agent");
        if (agentBundle != null && options.isAgentEnabled()) {
            agentBundle.start();
        }
    }
View Full Code Here

Examples of org.apache.tuscany.sca.osgi.runtime.OSGiRuntime.findBundle()

                        for (Export export : targetContribution.getExports()) {
                            if (export instanceof JavaExport) {
                                JavaExport javaExport = (JavaExport)export;
                                if (packageName.equals(javaExport.getPackage())) {

                                    if (osgiRuntime.findBundle(targetContribution.getLocation()) == null)
                                        bundlesToInstall.add(targetContribution);

                                    initialized = true;

                                }
View Full Code Here

Examples of org.apache.tuscany.sca.osgi.runtime.OSGiRuntime.findBundle()

                for (Contribution c : repository.getContributions()) {

                    // Go over all exports in the contribution
                    for (Export export : c.getExports()) {
                        // If the export matches our namespace, try to the resolve the model object
                        if (import_.match(export) && osgiRuntime.findBundle(c.getLocation()) == null) {
                            bundlesToInstall.add(c);
                        }
                    }
                }
            }
View Full Code Here

Examples of org.apache.tuscany.sca.osgi.runtime.OSGiRuntime.findBundle()

                        for (Export export : targetContribution.getExports()) {
                            if (export instanceof JavaExport) {
                                JavaExport javaExport = (JavaExport)export;
                                if (packageName.equals(javaExport.getPackage())) {

                                    if (osgiRuntime.findBundle(targetContribution.getLocation()) == null)
                                        bundlesToInstall.add(targetContribution);

                                    initialized = true;

                                }
View Full Code Here

Examples of org.apache.tuscany.sca.osgi.runtime.OSGiRuntime.findBundle()

                for (Contribution c : repository.getContributions()) {

                    // Go over all exports in the contribution
                    for (Export export : c.getExports()) {
                        // If the export matches our namespace, try to the resolve the model object
                        if (import_.match(export) && osgiRuntime.findBundle(c.getLocation()) == null) {
                            bundlesToInstall.add(c);
                        }
                    }
                }
            }
View Full Code Here

Examples of org.apache.tuscany.sca.osgi.runtime.OSGiRuntime.findBundle()

                        for (Export export : targetContribution.getExports()) {
                            if (export instanceof JavaExport) {
                                JavaExport javaExport = (JavaExport)export;
                                if (packageName.equals(javaExport.getPackage())) {

                                    if (osgiRuntime.findBundle(targetContribution.getLocation()) == null)
                                        bundlesToInstall.add(targetContribution);

                                    initialized = true;

                                }
View Full Code Here

Examples of org.apache.tuscany.sca.osgi.runtime.OSGiRuntime.findBundle()

                for (Contribution c : repository.getContributions()) {

                    // Go over all exports in the contribution
                    for (Export export : c.getExports()) {
                        // If the export matches our namespace, try to the resolve the model object
                        if (import_.match(export) && osgiRuntime.findBundle(c.getLocation()) == null) {
                            bundlesToInstall.add(c);
                        }
                    }
                }
            }
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.