/** * {@inheritDoc} */ @Override public boolean isCloseEmptyWindowContextsEnabled() { return CodiUtils.lookupConfigFromEnvironment(null, Boolean.class, super.isCloseEmptyWindowContextsEnabled()); }
/** * {@inheritDoc} */ @Override public boolean isCloseEmptyWindowContextsEnabled() { return CodiUtils.lookupConfigFromEnvironment(null, Boolean.class, super.isCloseEmptyWindowContextsEnabled()); }
private synchronized String createNewWindowContextId() { String windowContextId = this.windowHandler.createWindowId(); ExternalContext externalContext = FacesContext.getCurrentInstance().getExternalContext(); if(this.windowContextQuotaHandler.isWindowContextQuotaViolated(getNumberOfNextWindowContext())) { //handle violation if cleanup is deactivated or the cleanup wasn't successful if(!this.windowContextConfig.isCloseEmptyWindowContextsEnabled() || !cleanupInactiveWindowContexts(this)) { this.windowContextQuotaHandler.handleQuotaViolation(); } } if(this.projectStageDevelopment && this.windowHandler instanceof DefaultWindowHandler /*only in this case we know all details*/) { //it's easier for developers to check the current window context //after a cleanup of window contexts it isn't reliable //however - such a cleanup shouldn't occur during development windowContextId = convertToDevWindowContextId(windowContextId, getNumberOfNextWindowContext()); } storeCreatedWindowContextId(externalContext, windowContextId); cacheWindowId(externalContext, windowContextId, this.allowUnknownWindowIds); return windowContextId; }
private synchronized String createNewWindowContextId() { String windowContextId = this.windowHandler.createWindowId(); ExternalContext externalContext = FacesContext.getCurrentInstance().getExternalContext(); if(this.windowContextQuotaHandler.isWindowContextQuotaViolated(getNumberOfNextWindowContext())) { //handle violation if cleanup is deactivated or the cleanup wasn't successful if(!this.windowContextConfig.isCloseEmptyWindowContextsEnabled() || !cleanupInactiveWindowContexts(this)) { this.windowContextQuotaHandler.handleQuotaViolation(); } } if(this.projectStageDevelopment && this.windowHandler instanceof DefaultWindowHandler /*only in this case we know all details*/) { //it's easier for developers to check the current window context //after a cleanup of window contexts it isn't reliable //however - such a cleanup shouldn't occur during development windowContextId = convertToDevWindowContextId(windowContextId, getNumberOfNextWindowContext()); } storeCreatedWindowContextId(externalContext, windowContextId); cacheWindowId(externalContext, windowContextId, this.allowUnknownWindowIds); return windowContextId; }
private synchronized String createNewWindowContextId() { String windowContextId = this.windowHandler.createWindowId(); ExternalContext externalContext = FacesContext.getCurrentInstance().getExternalContext(); if(this.windowContextQuotaHandler.isWindowContextQuotaViolated(getNumberOfNextWindowContext())) { //handle violation if cleanup is deactivated or the cleanup wasn't successful if(!this.windowContextConfig.isCloseEmptyWindowContextsEnabled() || !cleanupInactiveWindowContexts(this)) { this.windowContextQuotaHandler.handleQuotaViolation(); } } if(this.projectStageDevelopment && this.windowHandler instanceof DefaultWindowHandler /*only in this case we know all details*/) { //it's easier for developers to check the current window context //after a cleanup of window contexts it isn't reliable //however - such a cleanup shouldn't occur during development windowContextId = convertToDevWindowContextId(windowContextId, getNumberOfNextWindowContext()); } storeCreatedWindowContextId(externalContext, windowContextId); cacheWindowId(externalContext, windowContextId, this.allowUnknownWindowIds); return windowContextId; }
if(windowContextConfig.isCloseEmptyWindowContextsEnabled())
if(windowContextConfig.isCloseEmptyWindowContextsEnabled())