@Override public synchronized void stop(BundleContext bundleContext) throws Exception { this.tracker.close(); }
public void destroy() { logService = null; logServiceTracker.close(); }
@Override public void stop() { for (String key : serviceTrackers.keySet()) { serviceTrackers.get( key ).close(); } serviceTrackers.clear(); } }
protected void deactivate() { if (providerTracker != null) { providerTracker.close(); providerTracker = null; } }
public void close() { if (authenticatorServiceTracker != null) { authenticatorServiceTracker.close(); authenticatorServiceTracker = null; } }
public void stop(BundleContext context) throws Exception { if (httpServiceTracker != null) { httpServiceTracker.close(); } } }
this.debugTracker.close(); this.debugTracker = null;
private void closeOSGITrackers() { if (preferencesTracker != null) { preferencesTracker.close(); preferencesTracker = null; contentTracker.close(); contentTracker = null; debugTracker.close(); debugTracker = null; bundleTracker.close(); bundleTracker = null; logTracker.close(); logTracker = null; groupProviderTracker.close(); groupProviderTracker = null; environmentTracker.close(); environmentTracker = null; logReaderTracker.close(); logReaderTracker = null; extendedLogTracker.close(); extendedLogTracker = null; installLocation.close();
/** {@inheritDoc} */ @Override public void destroy() { if (logTracker != null) { logTracker.close(); logTracker = null; } bundleContextGiven = null; super.destroy(); }
/** {@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; } //Shut this down last to make sure nobody calls for a property after this is shutdown if (configAdminTracker != null) { configAdminTracker.close(); configAdminTracker = null; } if (jolokiaHttpContext instanceof ServiceAuthenticationHttpContext) { final ServiceAuthenticationHttpContext context = (ServiceAuthenticationHttpContext) jolokiaHttpContext; context.close(); } restrictor = null; bundleContext = null; }
extensionTracker.close();
@Override public void stop(BundleContext bundleContext) throws Exception { bookingServiceTracker.close(); } }
public void destroy() { if (m_tracker != null) { m_tracker.close(); } }
public <T> Promise<T> waitForService(final Class<T> class1, final long timeoutInMs) throws Exception { return promiseFactory.submit(() -> { ServiceTracker<T, T> tracker = new ServiceTracker<>(context, class1, null); tracker.open(); T s = tracker.waitForService(timeoutInMs); if (s == null) { tracker.close(); throw new Exception("No service object " + class1); } return s; }); }
public void stop(BundleContext arg0) throws Exception { // cleanup provider tracker tracker.close(); tracker = null; // cleanup providers and remove ourselves as a JPA provider resolver PersistenceProviderResolverHolder.setPersistenceProviderResolver(null); providers.clear(); // cleanup context ctx = null; super.stop(arg0); }
public void stop() { ServiceReference<EntityManagerFactory>[] emfRefs = this.emfTracker.getServiceReferences(); for (ServiceReference<EntityManagerFactory> emfRef : emfRefs) { try { this.mbeanServer.unregisterMBean(getOName(emfRef)); } catch (Exception e) { } } this.emfTracker.close(); }
@Override protected void doStop() { if (bundleStateServicesTracker != null) { bundleStateServicesTracker.close(); bundleStateServicesTracker = null; } super.doStop(); if (bundleWatcher != null) { bundleWatcher.stop(); bundleWatcher = null; } }