private void initConfigMonitoring(ServletContext context) { //noinspection unchecked Collection<URL> webURLs = (Collection<URL>) context.getAttribute("com.sun.faces.webresources"); if (isDevModeEnabled() && webURLs != null && !webURLs.isEmpty()) { webResourcePool = new ScheduledThreadPoolExecutor(1); webResourcePool.scheduleAtFixedRate(new WebConfigResourceMonitor(context, webURLs), 2000, 2000, TimeUnit.MILLISECONDS); } context.removeAttribute("com.sun.faces.webresources"); }
MessageFormat.format( "ConfigureListener.contextInitialized({0})", getServletContextIdentifier(context))); LOGGER.log(Level.INFO, "jsf.config.listener.version", getServletContextIdentifier(context)); initScripting(); initConfigMonitoring(context); registerELResolverAndListenerWithJsp(context, false); ApplicationAssociate associate = ApplicationAssociate.getInstance(context); if (associate != null) { associate.setContextName(getServletContextIdentifier(context)); timer.stopTiming(); timer.logResult("Initialization of context " + getServletContextIdentifier(context));
public void registerELResolverAndListenerWithJsp(ServletContext context, boolean reloaded) { || !isJspTwoOne(context)) { if (!installExpressionFactory(context, webConfig.getOptionValue( WebContextInitParameter.ExpressionFactory))) {
LOGGER.log(Level.INFO, "Reloading JSF configuration for context {0}", getServletContextIdentifier(sc)); registerELResolverAndListenerWithJsp(sc, true); ApplicationAssociate associate = ApplicationAssociate.getInstance(sc); if (null != errorPagePresent) { associate.setErrorPagePresent(errorPagePresent); associate.setContextName(getServletContextIdentifier(sc)); LOGGER.log(Level.INFO, "Reload complete.", getServletContextIdentifier(sc));
initContext = getInitFacesContext(context); if (initContext == null) { initContext = new InitFacesContext(context);
MessageFormat.format( "ConfigureListener.contextInitialized({0})", getServletContextIdentifier(context))); LOGGER.log(Level.INFO, "jsf.config.listener.version", getServletContextIdentifier(context)); Verifier.setCurrentInstance(new Verifier()); initScripting(); configManager.initialize(context); if (shouldInitConfigMonitoring()) { initConfigMonitoring(context); registerELResolverAndListenerWithJsp(context, false); ApplicationAssociate associate = ApplicationAssociate.getInstance(context); associate.setContextName(getServletContextIdentifier(context)); BeanManager manager = associate.getBeanManager(); List<String> eagerBeans = manager.getEagerBeanNames(); timer.stopTiming(); timer.logResult("Initialization of context " + getServletContextIdentifier(context));
public void registerELResolverAndListenerWithJsp(ServletContext context, boolean reloaded) { if (webConfig.isSet(WebContextInitParameter.ExpressionFactory) || !isJspTwoOne(context)) { if (!installExpressionFactory(context, webConfig.getOptionValue( WebContextInitParameter.ExpressionFactory))) {
LOGGER.log(INFO, "Reloading JSF configuration for context {0}", getServletContextIdentifier(servletContext)); registerELResolverAndListenerWithJsp(servletContext, true); ApplicationAssociate associate = ApplicationAssociate.getInstance(servletContext); if (errorPagePresent != null) { associate.setErrorPagePresent(errorPagePresent); associate.setContextName(getServletContextIdentifier(servletContext)); LOGGER.log(Level.INFO, "Reload complete.", getServletContextIdentifier(servletContext));
initContext = getInitFacesContext(context); if (initContext == null) { initContext = new InitFacesContext(context);
LOGGER.log(FINE, format( "ConfigureListener.contextInitialized({0})", getServletContextIdentifier(context))); LOGGER.log(INFO, "jsf.config.listener.version", getServletContextIdentifier(context)); if (shouldInitConfigMonitoring()) { initConfigMonitoring(context); registerELResolverAndListenerWithJsp(context, false); ApplicationAssociate associate = ApplicationAssociate.getInstance(context); ELContext elContext = new ELContextImpl(initContext.getApplication().getELResolver()); associate.setContextName(getServletContextIdentifier(context)); BeanManager manager = associate.getBeanManager(); List<String> eagerBeans = manager.getEagerBeanNames(); timer.logResult("Initialization of context " + getServletContextIdentifier(context));
public void registerELResolverAndListenerWithJsp(ServletContext context, boolean reloaded) { || !isJspTwoOne(context)) { if (!installExpressionFactory(context, webConfig.getOptionValue( WebContextInitParameter.ExpressionFactory))) {
LOGGER.log(INFO, "Reloading JSF configuration for context {0}", getServletContextIdentifier(servletContext)); registerELResolverAndListenerWithJsp(servletContext, true); ApplicationAssociate associate = ApplicationAssociate.getInstance(servletContext); if (errorPagePresent != null) { associate.setErrorPagePresent(errorPagePresent); associate.setContextName(getServletContextIdentifier(servletContext)); LOGGER.log(Level.INFO, "Reload complete.", getServletContextIdentifier(servletContext));
private void initConfigMonitoring(ServletContext context) { @SuppressWarnings("unchecked") Collection<URI> webURIs = (Collection<URI>) context.getAttribute("com.sun.faces.webresources"); if (isDevModeEnabled() && webURIs != null && !webURIs.isEmpty()) { webResourcePool = new ScheduledThreadPoolExecutor(1, new MojarraThreadFactory("WebResourceMonitor")); webResourcePool.scheduleAtFixedRate(new WebConfigResourceMonitor(context, webURIs), 2000, 2000, TimeUnit.MILLISECONDS); } context.removeAttribute("com.sun.faces.webresources"); }
initContext = getInitFacesContext(context); if (initContext == null) { initContext = new InitFacesContext(context);
LOGGER.log(FINE, format( "ConfigureListener.contextInitialized({0})", getServletContextIdentifier(context))); LOGGER.log(INFO, "jsf.config.listener.version", getServletContextIdentifier(context)); if (shouldInitConfigMonitoring()) { initConfigMonitoring(context); registerELResolverAndListenerWithJsp(context, false); ApplicationAssociate associate = ApplicationAssociate.getInstance(context); ELContext elContext = new ELContextImpl(initContext.getApplication().getELResolver()); associate.setContextName(getServletContextIdentifier(context)); BeanManager manager = associate.getBeanManager(); List<String> eagerBeans = manager.getEagerBeanNames(); timer.logResult("Initialization of context " + getServletContextIdentifier(context));
public void registerELResolverAndListenerWithJsp(ServletContext context, boolean reloaded) { || !isJspTwoOne(context)) { if (!installExpressionFactory(context, webConfig.getOptionValue( WebContextInitParameter.ExpressionFactory))) {
LOGGER.log(INFO, "Reloading JSF configuration for context {0}", getServletContextIdentifier(servletContext)); registerELResolverAndListenerWithJsp(servletContext, true); ApplicationAssociate associate = ApplicationAssociate.getInstance(servletContext); if (errorPagePresent != null) { associate.setErrorPagePresent(errorPagePresent); associate.setContextName(getServletContextIdentifier(servletContext)); LOGGER.log(Level.INFO, "Reload complete.", getServletContextIdentifier(servletContext));
private void initConfigMonitoring(ServletContext context) { @SuppressWarnings("unchecked") Collection<URI> webURIs = (Collection<URI>) context.getAttribute("com.sun.faces.webresources"); if (isDevModeEnabled() && webURIs != null && !webURIs.isEmpty()) { webResourcePool = new ScheduledThreadPoolExecutor(1, new MojarraThreadFactory("WebResourceMonitor")); webResourcePool.scheduleAtFixedRate(new WebConfigResourceMonitor(context, webURIs), 2000, 2000, TimeUnit.MILLISECONDS); } context.removeAttribute("com.sun.faces.webresources"); }
initContext = getInitFacesContext(context); if (null == initContext) { initContext = new InitFacesContext(context);
LOGGER.log(FINE, format( "ConfigureListener.contextInitialized({0})", getServletContextIdentifier(context))); LOGGER.log(INFO, "jsf.config.listener.version", getServletContextIdentifier(context)); if (shouldInitConfigMonitoring()) { initConfigMonitoring(context); registerELResolverAndListenerWithJsp(context, false); ApplicationAssociate associate = ApplicationAssociate.getInstance(context); ELContext elContext = new ELContextImpl(initContext.getApplication().getELResolver()); associate.setContextName(getServletContextIdentifier(context)); boolean isErrorPagePresent = webXmlProcessor.isErrorPagePresent(); associate.setErrorPagePresent(isErrorPagePresent); timer.logResult("Initialization of context " + getServletContextIdentifier(context));