Ejemplo n.º 1
0
  /** {@inheritDoc} */
  public void stop(BundleContext pBundleContext) {
    assert pBundleContext.equals(bundleContext);

    if (httpServiceTracker != null) {
      // Closing the tracker will also call {@link HttpServiceCustomizer#removedService()}
      // for every active service which in turn unregisters the servlet
      httpServiceTracker.close();
      httpServiceTracker = null;
    }

    if (jolokiaServiceRegistration != null) {
      jolokiaServiceRegistration.unregister();
      jolokiaServiceRegistration = null;
    }

    restrictor = null;
    bundleContext = null;
  }