Remove a factory provider.

@param provider
437239
@Override
    public void deregisterFactories(ChannelFactoryProvider provider) {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
            Tr.event(tc, "Removing factory provider; " + provider.getClass().getName());
        }
        for (Entry<String, Class<? extends ChannelFactory>> entry : provider.getTypes().entrySet()) {
            this.providers.remove(entry.getKey());
            deregisterFactory(entry.getKey());
        }
        this.activatedProviders.remove(provider);
    }
650287
void removeProducerSession(ProducerSessionImpl producer)
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(tc, "removeProducerSession");
        synchronized (_producers)
        {
            _producers.remove(producer);
        }
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(tc, "removeProducerSession");
    }
1157238
public static void removeAllProviders() {
        Provider[] provider_list = Security.getProviders();

        for (int i = 0; i < provider_list.length; i++) {
            if (provider_list[i] != null) {
                String name = provider_list[i].getName();
                if (name != null) {
                    Security.removeProvider(name);
                }
            }
        }
    }
1033858
protected void unsetRRSXAResourceFactory(ServiceReference<Object> ref) {
        if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
            Tr.debug(tc, "unsetRRSXAResourceFactory", ref);
        rrsXAResFactorySvcRef.unsetReference(ref);
    }
1369348
@Override
	public void unregisterOsgiProviders () throws FhirConfigurationException {
		// need to make a copy to be able to remove items
		Collection<Object> providers = new ArrayList<Object>();
		providers.addAll(this.serverProviders);
		this.unregisterOsgiProviders(providers);
	}
1327896
private void unmapDataProviderFromAllTriggers(final DP dataProvider) {
        if (dataProvider != null) {
            for (final List<DP> mappedDataProviders : triggersToDataProviders.values()) {
                mappedDataProviders.remove(dataProvider);
            }
        }
    }
415377
def register_factory(self, specification, factory, scope=None):
        
        self.register_provider(
            specification,
            FactoryProvider(factory, scope=scope)
        )
842112
private void removeServiceListeners(String id) {
        final ServiceListener[] listeners = serviceListeners.remove(id);
        if (listeners != null)
            for (ServiceListener listener : listeners)
                if (listener != null) {
                    lock.readLock().lock();
                    try {
                        if (bundleContext != null)
                            bundleContext.removeServiceListener(listener);
                    } finally {
                        lock.readLock().unlock();
                    }
                }
    }
1189554
function (providerName) {
                this.destroyAllMaps(providerName);
                delete providers[providerName];
                if (providerInstancesToDispose[providerName]) {
                    providerInstancesToDispose[providerName].$dispose();
                    delete providerInstancesToDispose[providerName];
                }
                delete providerInstances[providerName];
            }
1133183
public void remove() {
        if(_mapIterator == null)
            throw new UnsupportedOperationException(Bundle.getErrorString("IteratorFactory_Iterator_removeUnsupported", new Object[]{this.getClass().getName()}));
        else _mapIterator.remove();
    }
203157
public boolean removeMessagingClientFactory(IMessagingClientFactory factory) {

		final String type = factory.getType();
		this.logger.fine("Removing messaging client factory: " + type);
		final boolean result = this.factories.remove(type, factory);
		if (result)
			notifyListeners(factory, false);

		return result;
	}
1012922
@SuppressWarnings("javadoc")
	public void removeFactory(ValidatorFactory factory) {
		// this is to avoid adding items to the cache that were removed while
		// iterating
		synchronized (map) {
			providers.remove(factory);
			map.clear();
		}
	}
211828
@Override
    public void registerFactories(ChannelFactoryProvider provider) {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
            Tr.event(tc, "Register factory provider; " + provider.getClass().getName());
        }
        synchronized (this.factories) {
            for (Entry<String, Class<? extends ChannelFactory>> entry : provider.getTypes().entrySet()) {
                this.providers.put(entry.getKey(), provider);
                Class<? extends ChannelFactory> newFactory = entry.getValue();
                if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled()) {
                    Class<? extends ChannelFactory> prevFactory = this.factories.get(entry.getKey());
                    if (null != prevFactory && newFactory != prevFactory) {
                        Tr.event(tc, "WARNING: overlaying existing factory: " + prevFactory);
                    }
                }
                this.factories.put(entry.getKey(), newFactory);
            }
        } // end-sync

        // now that we have a new factory type, tell ChannelUtils to process
        // any delayed config that might be waiting for it
        ChannelUtils.loadConfig(null);
    }
555070
public void setProvider(String provider)
    {
        if (provider != null && provider.endsWith(".class"))
        {
            this.provider = provider.substring(0, provider.length() - 6);
        }
        this.provider = provider;
    }
556081
private synchronized void removeLoader(ClassLoader loader)
  {
    int i;
    for (i = _loaders.size() - 1; i >= 0; i--) {
      WeakReference<ClassLoader> ref = _loaders.get(i);
      ClassLoader refLoader = ref.get();

      if (refLoader == null)
        _loaders.remove(i);
      else if (refLoader == loader)
        _loaders.remove(i);
    }
  }
444739
@Override
    public void registerResourceProvider(ResourceProvider provider) {
	provider.setResources(this);
	String scheme = provider.getScheme();
	if (StringUtil.isEmpty(scheme)) return;

	ResourceProviderFactory[] tmp = new ResourceProviderFactory[resources.length + 1];
	for (int i = 0; i < resources.length; i++) {
	    if (scheme.equalsIgnoreCase(resources[i].getScheme())) {
		resources[i] = new ResourceProviderFactory(this, provider);
		return;
	    }
	    tmp[i] = resources[i];
	}
	tmp[resources.length] = new ResourceProviderFactory(this, provider);
	resources = tmp;
    }
978822
public void removeProvider(UserTransactionProvider provider)
   {
      UserTransactionProviderImpl impl = providers.get(provider);

      if (impl != null)
      {
         delegator.removeProvider(impl);
         providers.remove(provider);
      }
   }