Codota Logo
BundleUtils
Code IndexAdd Codota to your IDE (free)

How to use
BundleUtils
in
io.fabric8.utils

Best Java code snippets using io.fabric8.utils.BundleUtils (Showing top 8 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: 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

  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

  public Bundle findAndStopBundle(String bsn) throws BundleException {
    Bundle bundle = findBundle(bsn);
    if (bundle != null) {
      bundle.stop();
    }
    return bundle;
  }
}
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

Bundle fileinstall = new BundleUtils(bundleContext).findBundle("org.apache.felix.fileinstall");
if (fileinstall != null) {
  fileinstall.stop(Bundle.STOP_TRANSIENT);
origin: jboss-fuse/fabric8

@Override
public MetaTypeInformationDTO getMetaTypeInformation(String bundleSymbolicName) {
  try {
    Bundle bundle = bundleUtils.findBundle(bundleSymbolicName);
    return getMetaTypeInformationDTO(bundle);
  } catch (BundleException e) {
    LOG.info("Could not find bundle '" + bundleSymbolicName + "'");
    return null;
  }
}
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();
  }
}
io.fabric8.utilsBundleUtils

Most used methods

  • findBundle
  • <init>
  • findAndStopBundle
  • installBundle

Popular in Java

  • Creating JSON documents from java classes using gson
  • onRequestPermissionsResult (Fragment)
  • setContentView (Activity)
  • startActivity (Activity)
  • Socket (java.net)
    Provides a client-side TCP socket.
  • URI (java.net)
    Represents a Uniform Resource Identifier (URI) reference. Aside from some minor deviations noted bel
  • KeyStore (java.security)
    This class represents an in-memory collection of keys and certificates. It manages two types of entr
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • JButton (javax.swing)
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
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