Codota Logo
BundleUtils.<init>
Code IndexAdd Codota to your IDE (free)

How to use
io.fabric8.utils.BundleUtils
constructor

Best Java code snippets using io.fabric8.utils.BundleUtils.<init> (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: jboss-fuse/fabric8

  private void stopBundles() throws BundleException {
    BundleUtils bundleUtils = new BundleUtils(bundleContext);
    bundleUtils.findAndStopBundle("io.fabric8.fabric-agent");
//        bundleUtils.findAndStopBundle("org.ops4j.pax.web.pax-web-jetty");
  }

origin: jboss-fuse/fabric8

  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();
    }
//        Bundle webBundle = bundleUtils.findBundle("org.ops4j.pax.web.pax-web-jetty");
//        if (webBundle != null) {
//            webBundle.start();
//        }
  }

origin: jboss-fuse/fabric8

@Activate
void activate(BundleContext bundleContext) throws Exception {
  this.bundleContext = bundleContext;
  bundleUtils = new BundleUtils(bundleContext);
  Objects.notNull(metaTypeService, "metaTypeService");
  Objects.notNull(bundleContext, "bundleContext");
  if (mbeanServer != null) {
    StandardMBean mbean = new StandardMBean(this, MetaTypeFacadeMXBean.class);
    JMXUtils.registerMBean(mbean, mbeanServer, OBJECT_NAME);
  }
}
origin: jboss-fuse/fabric8

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");
  if (nonManaged && bundleFabricAgent == null) {
    //do nothing
  } else if (nonManaged && bundleFabricAgent != null) {
    bundleFabricAgent.stop();
  } else if (bundleFabricAgent == null) {
    bundleFabricAgent = bundleUtils.installBundle("mvn:io.fabric8/fabric-agent/" + FabricConstants.FABRIC_VERSION);
    bundleFabricAgent.start();
  } else {
    bundleFabricAgent.start();
  }
}
origin: io.fabric8/fabric-boot-commands

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");
  if (nonManaged && bundleFabricAgent == null) {
    //do nothing
  } else if (nonManaged && bundleFabricAgent != null) {
    bundleFabricAgent.stop();
  } else if (bundleFabricAgent == null) {
    bundleFabricAgent = bundleUtils.installBundle("mvn:io.fabric8/fabric-agent/" + FabricConstants.FABRIC_VERSION);
    bundleFabricAgent.start();
  } else {
    bundleFabricAgent.start();
  }
}
origin: jboss-fuse/fabric8

Bundle fileinstall = new BundleUtils(bundleContext).findBundle("org.apache.felix.fileinstall");
if (fileinstall != null) {
  fileinstall.stop(Bundle.STOP_TRANSIENT);
io.fabric8.utilsBundleUtils<init>

Popular methods of BundleUtils

  • findBundle
  • findAndStopBundle
  • installBundle

Popular in Java

  • Making http requests using okhttp
  • setRequestProperty (URLConnection)
  • onCreateOptionsMenu (Activity)
  • onRequestPermissionsResult (Fragment)
  • FileWriter (java.io)
    Convenience class for writing character files. The constructors of this class assume that the defaul
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate(i
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • ImageIO (javax.imageio)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Runner (org.openjdk.jmh.runner)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now