@Override public void stop(BundleContext context) throws Exception { registrationS.unregister(); registrationP.unregister(); } }
@Override public void stop(BundleContext context) throws Exception { if (vertxRegistration != null) { vertxRegistration.unregister(); vertxRegistration = null; } if (ebRegistration != null) { ebRegistration.unregister(); ebRegistration = null; } } }
@Override public void stop(BundleContext context) throws Exception { osgiServiceUtil.stop(); osgiServiceUtil = null; persistenceProviderService.unregister(); persistenceProviderService = null; sessionFactoryService.unregister(); sessionFactoryService = null; } }
@Invalidate public void unregisterJDBCClientService() { registration.unregister(); client.close(); } }
public void stop(BundleContext context) throws Exception { if (_registration != null) { _registration.unregister(); _registration = null; } if (Driver.isRegistered()) { Driver.deregister(); } } }
@Override public void stop(BundleContext context) throws Exception { parserService.unregister(); detectorService.unregister(); }
private void stopServices() { if (legacyPreferencesService != null) { legacyPreferencesService.unregister(); legacyPreferencesService = null; } if (customPreferencesService != null) { customPreferencesService.unregister(); customPreferencesService = null; } }
@Override public void stop( BundleContext context ) throws Exception { this.discoveryReg.unregister(); } }
public void unregisterBundleGroupProvider(IBundleGroupProvider provider) { // get the service reference (map provider -> reference) ServiceRegistration<IBundleGroupProvider> registration; synchronized (groupProviders) { registration = groupProviders.remove(provider); } if (registration == null) return; // unregister the provider registration.unregister(); }
@Override public void removedService(ServiceReference<HttpService> reference, HttpService service) { servletPublisherReg.unregister(); try { servletExporter.updated(null); } catch (ConfigurationException e) { // Ignore } }
/** {@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; }
serviceRegistration.unregister(); if (videobridge != null) videobridge.stop(bundleContext);
/** * Stops this {@code Activator}. * * @param bundleContext the {@code BundleContext} in which this * {@code Activator} is stopping * @throws Exception error stopping and removing dependent services. */ @Override public void stop(BundleContext bundleContext) throws Exception { bundleContext.removeServiceListener(this); if (serviceRegistration != null) { serviceRegistration.unregister(); serviceRegistration = null; } if (conferenceStatsHandler != null) { conferenceStatsHandler.stop(); conferenceStatsHandler = null; } }
serviceRegistration.unregister(); if (statsMgr != null) statsMgr.stop(bundleContext);
serviceRegistration.unregister();
public void postShutdown() { if (service != null) { service.unregister(); service = null; } }
/** * Unregisters itself from the service registry. */ public void stop() { registration.unregister(); }
public void close() { if (closed.getAndSet(true) == false) { registerService.unregister(); lrRegistration.unregister(); } } }
public boolean dereference() { if ( referenceCount.decrementAndGet() == 0 ) { this.m_registration.unregister(); this.m_registration = null; return true; } return false; }
@Override public void removedService(ServiceReference<HttpService> reference, HttpService service) { servletPublisherReg.unregister(); try { servletExporter.updated(null); } catch (ConfigurationException e) { // Ignore } }