Example #1
0
    public void removeApplicationFactoryManager(ClassLoader cl) {
      FactoryManager fm = this.getApplicationFactoryManager(cl, false);
      if (null != fm) {
        fm.clearInjectionProvider();
      }

      FacesContext facesContext = FacesContext.getCurrentInstance();
      boolean isSpecialInitializationCase = detectSpecialInitializationCase(facesContext);

      FactoryManagerCacheKey key = new FactoryManagerCacheKey(facesContext, cl, applicationMap);

      applicationMap.remove(key);
      if (isSpecialInitializationCase) {
        logNullFacesContext.set(false);
        logNonNullFacesContext.set(false);
      }
    }