Shuts down the filter manager instance and sets the filter config to null
for each loaded filter object
320845
public void shutdown() {
        // call destroy on each filter instance wrapper
        Enumeration filterWrappers = _filterWrappers.elements();

        ClassLoader origClassLoader = ThreadContextHelper.getContextClassLoader();
        try {
            final ClassLoader warClassLoader = webApp.getClassLoader();
            if (warClassLoader != origClassLoader) {
                ThreadContextHelper.setClassLoader(warClassLoader);
            }
            while (filterWrappers.hasMoreElements()) {
                try {
                    FilterInstanceWrapper fw = (FilterInstanceWrapper) filterWrappers.nextElement();

                    Throwable t = this.webApp.invokeAnnotTypeOnObjectAndHierarchy(fw.getFilterInstance(), ANNOT_TYPE.PRE_DESTROY);
                    if (t != null) {
                        // log exception - could be from user's code - and move on 
                        if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && logger.isLoggable(Level.FINE)) { // 306998.15
                            logger.logp(Level.FINE, CLASS_NAME, "shutdown", "Exception caught during preDestroy processing: " + t);
                        }
                    }

                    fw.destroy();


                } catch (Throwable th) {
                    // should probably log this...continue on to destroy all
                    // filters
                    com.ibm.wsspi.webcontainer.util.FFDCWrapper.processException(th, "com.ibm.ws.webcontainer.filter.WebAppFilterManager.shutdown",
                                                                                 "237", this);
                }
            }
        } finally {
            ThreadContextHelper.setClassLoader(origClassLoader);
        }

        // release the hash tables
        /* Nulls can cause NPE in doFilter, GC should clean these up when
         * WebAppFilterMater is no longer referenced.
        _filterWrappers = null;
        chainCache = null;
        forwardChainCache = null;
        includeChainCache = null;
        errorChainCache = null;*/
    }
424025
public void removeFilter(String filterName)
   {
      Filter filter = getFilterByName(filterName);
      if (filter != null)
      {
         if (filter.isTaskFilter())
         {
            m_taskFilters.remove(filter);
         }

         if (filter.isResourceFilter())
         {
            m_resourceFilters.remove(filter);
         }
         m_filtersByName.remove(filterName);
         m_filtersByID.remove(filter.getID());
      }
   }
60042
@Override
    public void shutdown()
    {
        if (manager != null)
        {
            manager.removalAll();
            manager = null;
        }
        cache = null;
    }
155329
@Override public void shutdown() {
        if (isStarted()) {
            future.cancel(true);
            executorService.shutdown();
            future = null;
            executorService = null;
            watchedFiles = ImmutableSet.of();
            callback = null;
            metadataCacheRef.set(ImmutableMap.of());
            stats.clear();
        }
    }
123925
public void shutdown() {
        synchronized (configCache) {
            Set<ClassLoader> allClassLoaders = new HashSet<>();
            allClassLoaders.addAll(configCache.keySet()); //create a copy of the keys so that we avoid a ConcurrentModificationException
            for (ClassLoader classLoader : allClassLoaders) {
                close(classLoader);
            }
            //caches should be empty now but clear them anyway
            configCache.clear();
            appClassLoaderMap.clear();
        }
    }
374752
@Override
  public void shutdown(ShutdownModeAmp mode)
  {
    // jamp/3210
    //getReadMailbox().close();

    for (int i = _serviceCloseList.size() - 1; i >= 0; i--) {
      ServiceRefAmp service = _serviceCloseList.get(i);

      service.shutdown(mode);
    }

    for (GatewayResultStream result : _gatewayResultMap.values()) {
      result.cancel();
    }
    
    _serviceRefOut.close(Result.ignore());
  }
1220149
public function clear()
    {
        $this->controller = null;
        $this->action = null;
        $this->filters = array();
        $this->filter_names = array();
        $this->position = 0;
        $this->has_action_filter = false;
    }
1086352
public function uninstall_cleanup() {
        global $DB, $CFG;

        $DB->delete_records('filter_active', array('filter' => $this->name));
        $DB->delete_records('filter_config', array('filter' => $this->name));

        if (empty($CFG->filterall)) {
            $stringfilters = array();
        } else if (!empty($CFG->stringfilters)) {
            $stringfilters = explode(',', $CFG->stringfilters);
            $stringfilters = array_combine($stringfilters, $stringfilters);
        } else {
            $stringfilters = array();
        }

        unset($stringfilters[$this->name]);

        set_config('stringfilters', implode(',', $stringfilters));
        set_config('filterall', !empty($stringfilters));

        parent::uninstall_cleanup();
    }
1148548
@Override
  public void shutdown(ShutdownModeAmp mode)
  {
    // jamp/3210
    //getReadMailbox().close();
    try {
      getServiceRefOut().shutdown(mode);
    } catch (Throwable e) {
      log.log(Level.FINER, e.toString(), e);
    }
    
    for (ServiceRefAmp service : _linkServiceMap.values()) {
      service.shutdown(mode);
    }
    
    for (StubAmp actor : _closeList) {
      actor.onShutdown(mode);
    }
  }
1305978
@Override
  public void shutdown(ShutdownModeAmp mode)
  {
    QueryMap queryMap = _queryMapRef.get();
    
    if (queryMap != null) {
      queryMap.close();
    }
  }
168745
private void cleanup_event_filters() {
        Enumeration keys = event_callback_map.keys();
        while (keys.hasMoreElements()) {
            String name = (String) keys.nextElement();
            EventCallBackStruct callback_struct = event_callback_map.get(name);
            if (callback_struct.consumer instanceof NotifdEventConsumer) {
                try {
                    EventChannelStruct ec_struct = channel_map.get(callback_struct.channel_name);
                    Filter filter = ec_struct.structuredProxyPushSupplier.get_filter(callback_struct.filter_id);
                    ec_struct.structuredProxyPushSupplier.remove_filter(callback_struct.filter_id);
                    filter.destroy();
                } catch (FilterNotFound e) {
                    // Do nothing
                }
            }
        }
    }
473000
static synchronized void shutDownHub() {
        LOGGER.entering();
        if (!isRunLocally()) {
            LOGGER.exiting();
            return;
        }

        // shutdown in reverse order
        Collections.reverse(toBoot);
        for (LocalServerComponent eachItem : toBoot) {
            eachItem.shutdown();
        }
        clearToBootList();
        LOGGER.exiting();
    }
998893
public static void shutdown() {
		UdpResources resources = udpResources.getAndSet(null);
		if (resources != null) {
			resources._dispose();
		}
	}
1071276
function removeFilter (config, filter) {
  if (filter) {
    if (config.filters.ignore[ filter ]) {
      delete config.filters.ignore[ filter ]
    } else {
      delete config.filters.should[ filter ]
    }
  }
}
703116
public void cancelAll(RequestFilter filter) {
        synchronized (mCurrentRequests) {
            for (Request<?> request : mCurrentRequests) {
                if (filter.apply(request)) {
                    request.cancel();
                }
            }
        }
    }
364400
def shutdown(self):
        
        for connection in self.connections.copy():
            connection.shutdown()

        self.connections = None

        self.context.term()
        self.context = None
        if self.trigger:
            try:
                self.reactor.removeSystemEventTrigger(self.trigger)
            except Exception:
                pass
1062191
public void destroy() {
        if (mContentView != null) {
            if (mGroupBasicAdapter != null) {
                mGroupBasicAdapter.destroy();
            }
            mContentView.setAdapter(null);
            mContentView = null;
        }
        TimerSupport timerSupport = getService(TimerSupport.class);
        if (timerSupport != null) {
            timerSupport.clear();
        }
        SimpleClickSupport simpleClickSupport = getService(SimpleClickSupport.class);
        if (simpleClickSupport != null) {
            simpleClickSupport.destroy();
        }
        ExposureSupport exposureSupport = getService(ExposureSupport.class);
        if (exposureSupport != null) {
            exposureSupport.destroy();
        }
        BusSupport busSupport = getService(BusSupport.class);
        if (busSupport != null) {
            busSupport.shutdown();
        }
        BannerSupport bannerSupport = getService(BannerSupport.class);
        if (bannerSupport != null) {
            bannerSupport.destroy();
        }
        VafContext vafContext = getService(VafContext.class);
        if (vafContext != null) {
            vafContext.onDestroy();
        }
    }