private String fetchProjectStageFromConfig() { WebConfiguration webConfig = WebConfiguration.getInstance(FacesContext.getCurrentInstance().getExternalContext()); String value = webConfig.getEnvironmentEntry(WebConfiguration.WebEnvironmentEntry.ProjectStage); if (value != null) { if (LOGGER.isLoggable(FINE)) { LOGGER.log(FINE, "ProjectStage configured via JNDI: {0}", value); } } else { value = webConfig.getOptionValue(JavaxFacesProjectStage); if (value != null && LOGGER.isLoggable(FINE)) { LOGGER.log(FINE, "ProjectStage configured via servlet context init parameter: {0}", value); } } return value; }
private String fetchProjectStageFromConfig() { WebConfiguration webConfig = WebConfiguration.getInstance(FacesContext.getCurrentInstance().getExternalContext()); String value = webConfig.getEnvironmentEntry(WebConfiguration.WebEnvironmentEntry.ProjectStage); if (value != null) { if (LOGGER.isLoggable(FINE)) { LOGGER.log(FINE, "ProjectStage configured via JNDI: {0}", value); } } else { value = webConfig.getOptionValue(JavaxFacesProjectStage); if (value != null && LOGGER.isLoggable(FINE)) { LOGGER.log(FINE, "ProjectStage configured via servlet context init parameter: {0}", value); } } return value; }
private String fetchProjectStageFromConfig() { WebConfiguration webConfig = WebConfiguration.getInstance(FacesContext.getCurrentInstance().getExternalContext()); String value = webConfig.getEnvironmentEntry(WebConfiguration.WebEnvironmentEntry.ProjectStage); if (value != null) { if (LOGGER.isLoggable(FINE)) { LOGGER.log(FINE, "ProjectStage configured via JNDI: {0}", value); } } else { value = webConfig.getOptionValue(JavaxFacesProjectStage); if (value != null && LOGGER.isLoggable(FINE)) { LOGGER.log(FINE, "ProjectStage configured via servlet context init parameter: {0}", value); } } return value; }
String value = webConfig.getEnvironmentEntry(WebConfiguration.WebEnvironmentEntry.ProjectStage);
String value = webConfig.getEnvironmentEntry(WebConfiguration.WebEnvironmentEntry.ProjectStage);
String value = webConfig.getEnvironmentEntry(WebConfiguration.WebEnvironmentEntry.ProjectStage);
WebConfiguration.getInstance( FacesContext.getCurrentInstance().getExternalContext()); String value = webConfig.getEnvironmentEntry(WebConfiguration.WebEnvironmentEntry.ProjectStage); if (value != null) { if (LOGGER.isLoggable(Level.FINE)) {
WebConfiguration.getInstance( FacesContext.getCurrentInstance().getExternalContext()); String value = webConfig.getEnvironmentEntry(WebConfiguration.WebEnvironmentEntry.ProjectStage); if (value != null) { if (LOGGER.isLoggable(Level.FINE)) {
public FacesRenderKitImpl() { webConfig = WebConfiguration.getInstance(); String value = webConfig.getEnvironmentEntry(WebConfiguration.WebEnvironmentEntry.ProjectStage); if (value == null) { value = webConfig.getOptionValue(WebContextInitParameter.JavaxFacesProjectStage); } try { if (value != null) { if (ProjectStage.valueOf(value).equals(ProjectStage.Development)) { webConfig.overrideContextInitParameter(WebContextInitParameter.FaceletsDefaultRefreshPeriod, WebContextInitParameter.FaceletsDefaultRefreshPeriod.getDefaultValue()); } } } catch (IllegalArgumentException e) { } }
public FacesRenderKitImpl() { webConfig = WebConfiguration.getInstance(); String value = webConfig.getEnvironmentEntry(WebConfiguration.WebEnvironmentEntry.ProjectStage); if (value == null) { value = webConfig.getOptionValue(WebContextInitParameter.JavaxFacesProjectStage); } try { if (value != null) { if (ProjectStage.valueOf(value).equals(ProjectStage.Development)) { webConfig.overrideContextInitParameter(WebContextInitParameter.FaceletsDefaultRefreshPeriod, WebContextInitParameter.FaceletsDefaultRefreshPeriod.getDefaultValue()); } } } catch (IllegalArgumentException e) { } }