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"); }
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"); }
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"); }
private void initConfigMonitoring(ServletContext context) { //noinspection 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"); }
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"); }