Handle unbind service event.
@param service Service instance
@param props Service reference properties
16398
public void unbind(T service, Map<String, Object> props) {
    synchronized (serviceMap) {
      serviceMap.remove(ServiceUtil.getComparableForServiceRanking(props));
      updateSortedServices();
    }
  }
587689
@Override
    public void unset(String propName) {
        if (propName.equals("level")) {
            unsetLevel();
        }
        if (propName.equals("treeView")) {
            unsetTreeView();
        }
        super.unset(propName);
    }
717617
def unbind(*instances)
      service_bindings.each do |b|
        if instances.include? b.service_instance
          b.delete!
        end
      end

      self
    end
510375
def removeService(self, service):
        
        for name, wrapper in self.services.iteritems():
            if service in (name, wrapper.service):
                del self.services[name]
                return

        raise NameError("Service %r not found" % (service,))
427587
public static void stop(Service service) {
    if (service != null) {
      Service.STATE state = service.getServiceState();
      if (state == Service.STATE.STARTED) {
        service.stop();
      }
    }
  }
1373494
@Override
    protected K addService(S service, ServiceProperties props) {
        K key = keyFunction.apply(service, props);
        if (key != null) {
            if (serviceMap.putIfAbsent(key, service) != null) {
                getLogger().error("Duplicate key \"{}\" detected for service {}.", key, props.getServiceId());
                return null;
            }
            return key;
        }
        return null;
    }
462252
@Override
    public void unset(String propName) {
        if (propName.equals("size")) {
            unsetSize();
        }
        if (propName.equals("startIndex")) {
            unsetStartIndex();
        }
        super.unset(propName);
    }
599525
protected void removeDependency(Service service) {
        assertDuringInitialization();
        LOG.info("Service {} is not dependent on {}", this, service);
        if (!dependsOn.remove(service))
            LOG.warn("Service {} asked to remove dependency on {}, but wasn't dependendent on it", getName(), service.getName());
    }
220092
protected void unsetJsAdminService(ServiceReference<JsAdminService> ref) {
        if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
            SibTr.entry(tc, "unsetJsAdminService", ref);
        jsAdminServiceref.setReference(ref);
        if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
            SibTr.exit(tc, "unsetJsAdminService");

    }
1355518
@Override
	public void unbind(Name name) throws NamingException
    {
        if (name.isEmpty())
            throw new InvalidNameException("Cannot unbind empty name");

        // Extract components that belong to this namespace
        String nm = name.toString();

        // Remove object from internal hash table
        bindings.remove(nm);
    }
157734
private void releaseServiceWithoutCheck(BeanContextChild child, BCSSChild bcssChild, Object requestor, Object service, boolean callRevokedListener)
	{

		if (bcssChild.serviceRecords == null || bcssChild.serviceRecords.isEmpty())
		{
			return;
		}

		synchronized (child)
		{
			// scan record
			for (Iterator iter = bcssChild.serviceRecords.iterator(); iter.hasNext();)
			{
				ServiceRecord rec = (ServiceRecord) iter.next();
				if (rec.requestor == requestor && rec.service == service)
				{
					// release service
					rec.provider.releaseService(getBeanContextServicesPeer(), requestor, service);
					// call service revoked listener
					if (callRevokedListener && rec.revokedListener != null)
					{
						rec.revokedListener.serviceRevoked(new BeanContextServiceRevokedEvent(getBeanContextServicesPeer(), rec.serviceClass, true));
					}
					// remove record
					iter.remove();
					break;
				}
			}
		}
	}
102884
public void valueUnbound(HttpSessionBindingEvent event) {
		String sessionId = event.getSession().getId();
		Debug.logVerbose("[JdonFramework] unvalueBound active, sessionId :" + sessionId, module);
		Debug.logVerbose("[JdonFramework] unvalueUnbound active, componentsboxs size" + componentsboxsInSession.size(), module);
		// removeObjects();
		componentsboxsInSession.clear();
		if (targetMetaRequestsHolder != null)
			targetMetaRequestsHolder.clear();
		targetMetaRequestsHolder = null;
		componentVisitor = null;
	}
1094890
public void unbindService() {
        Log.v(TAG, "Trying to unbind the service");
        Context context = this.context.get();
        if (isBound && context != null) {
            context.unbindService(this);
            isBound = false;
        }
    }
59167
function unbind (vm, key) {
  var source = vm._wilddogSources && vm._wilddogSources[key]
  if (!source) {
    throw new Error(
      'VueWild: unbind failed: "' + key + '" is not bound to ' +
      'a Wilddog reference.'
    )
  }
  var listeners = vm._wilddogListeners[key]
  for (var event in listeners) {
    source.off(event, listeners[event])
  }
  vm[key] = null
  vm.$wilddogRefs[key] = null
  vm._wilddogSources[key] = null
  vm._wilddogListeners[key] = null
}
289806
@Override
    public void removeServiceListener(ServiceListener listener) {
        // Note: if unfiltered service listeners are implemented
        // This method needs to look for, and remove, the listener there
        // as well

        // Go through all of the filters, and for each filter
        // remove the listener from the filter's list.
        for(Entry<String, List<ServiceListener>> filteredList : filteredServiceListeners.entrySet()) {
            filteredList.getValue().remove(listener);
        }
    }
773660
@Unbind(id = "exporterServices")
    void unbindExporterService(ServiceReference<ExporterService> serviceReference) {
        LOG.debug(linkerName + " : Unbind the ExporterService " + exportersManager.getDeclarationBinder(serviceReference));
        synchronized (lock) {
            exportersManager.removeLinks(serviceReference);
            exportersManager.remove(serviceReference);
        }
    }
1304867
private void unbind(IActionTarget target) {
        if (targets.remove(target) && targets.isEmpty()) {
            getEventManager().unsubscribe(eventName, this);
        }
    }