Examples of stopBundle()


Examples of org.jboss.osgi.framework.spi.BundleManager.stopBundle()

        public void stop(StopContext context) {
            XBundle bundle = injectedBundle.getValue();
            try {
                // Server shutdown should not modify the persistent start setting
                BundleManager bundleManager = depUnit.getAttachment(OSGiConstants.BUNDLE_MANAGER_KEY);
                bundleManager.stopBundle(bundle, Bundle.STOP_TRANSIENT);
                depUnit.putAttachment(Attachments.BUNDLE_STATE_KEY, BundleState.RESOLVED);
            } catch (BundleException ex) {
                LOGGER.debugf(ex, "Cannot stop bundle: %s", bundle);
            }
        }
View Full Code Here

Examples of org.osgi.jmx.framework.FrameworkMBean.stopBundle()

   public void stopBundle(BundleHandle handle) throws BundleException
   {
      try
      {
         FrameworkMBean frameworkMBean = jmxSupport.getFrameworkMBean();
         frameworkMBean.stopBundle(handle.getBundleId());
      }
      catch (IOException ex)
      {
         throw new BundleException("Cannot start bundle: " + handle, ex);
      }
View Full Code Here

Examples of org.osgi.jmx.framework.FrameworkMBean.stopBundle()

   public void stopBundle(BundleHandle handle) throws BundleException
   {
      try
      {
         FrameworkMBean frameworkMBean = jmxSupport.getFrameworkMBean();
         frameworkMBean.stopBundle(handle.getBundleId());
      }
      catch (IOException ex)
      {
         throw new BundleException("Cannot start bundle: " + handle, ex);
      }
View Full Code Here

Examples of org.osgi.jmx.framework.FrameworkMBean.stopBundle()

   public void stopBundle(BundleHandle handle) throws BundleException
   {
      try
      {
         FrameworkMBean frameworkMBean = jmxSupport.getFrameworkMBean();
         frameworkMBean.stopBundle(handle.getBundleId());
      }
      catch (IOException ex)
      {
         throw new BundleException("Cannot start bundle: " + handle, ex);
      }
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.