private void removePurgedBeansFromSessionAndApplication(RuntimeConfig runtimeConfig) { Map oldManagedBeans = runtimeConfig.getManagedBeansNotReaddedAfterPurge(); if(oldManagedBeans!=null) { Iterator it=oldManagedBeans.entrySet().iterator(); while(it.hasNext()) { Map.Entry entry = (Map.Entry) it.next(); ManagedBean bean = (ManagedBean) entry.getValue(); String scope = bean.getManagedBeanScope(); if(scope!=null && scope.equalsIgnoreCase("session")) { _externalContext.getSessionMap().remove(entry.getKey()); } else if(scope!=null && scope.equalsIgnoreCase("application")) { _externalContext.getApplicationMap().remove(entry.getKey()); } } } runtimeConfig.resetManagedBeansNotReaddedAfterPurge(); }
private void removePurgedBeansFromSessionAndApplication(RuntimeConfig runtimeConfig) { Map<String, ManagedBean> oldManagedBeans = runtimeConfig.getManagedBeansNotReaddedAfterPurge(); if (oldManagedBeans != null) { for (Map.Entry<String, ManagedBean> entry : oldManagedBeans.entrySet()) { ManagedBean bean = entry.getValue(); String scope = bean.getManagedBeanScope(); if (scope != null && scope.equalsIgnoreCase("session")) { _externalContext.getSessionMap().remove(entry.getKey()); } else if (scope != null && scope.equalsIgnoreCase("application")) { _externalContext.getApplicationMap().remove(entry.getKey()); } } } runtimeConfig.resetManagedBeansNotReaddedAfterPurge(); }
private void removePurgedBeansFromSessionAndApplication(RuntimeConfig runtimeConfig) { Map<String, ManagedBean> oldManagedBeans = runtimeConfig.getManagedBeansNotReaddedAfterPurge(); if (oldManagedBeans != null) { for (Map.Entry<String, ManagedBean> entry : oldManagedBeans.entrySet()) { ManagedBean bean = entry.getValue(); String scope = bean.getManagedBeanScope(); if (scope != null && scope.equalsIgnoreCase("session")) { _externalContext.getSessionMap().remove(entry.getKey()); } else if (scope != null && scope.equalsIgnoreCase("application")) { _externalContext.getApplicationMap().remove(entry.getKey()); } } } runtimeConfig.resetManagedBeansNotReaddedAfterPurge(); }
private void removePurgedBeansFromSessionAndApplication(RuntimeConfig runtimeConfig) { Map<String, ManagedBean> oldManagedBeans = runtimeConfig.getManagedBeansNotReaddedAfterPurge(); if (oldManagedBeans != null) { for (Map.Entry<String, ManagedBean> entry : oldManagedBeans.entrySet()) { ManagedBean bean = entry.getValue(); String scope = bean.getManagedBeanScope(); if (scope != null && scope.equalsIgnoreCase("session")) { _externalContext.getSessionMap().remove(entry.getKey()); } else if (scope != null && scope.equalsIgnoreCase("application")) { _externalContext.getApplicationMap().remove(entry.getKey()); } } } runtimeConfig.resetManagedBeansNotReaddedAfterPurge(); }