Examples of MojarraThreadFactory


Examples of com.sun.faces.util.MojarraThreadFactory

        //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);
        }
View Full Code Here

Examples of com.sun.faces.util.MojarraThreadFactory

        //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);
        }
View Full Code Here

Examples of com.sun.faces.util.MojarraThreadFactory

        //noinspection unchecked
        Collection<URL> webURLs =
                (Collection<URL>) context.getAttribute("com.sun.faces.webresources");
        if (isDevModeEnabled() && webURLs != null && !webURLs.isEmpty()) {
            webResourcePool = new ScheduledThreadPoolExecutor(1, new MojarraThreadFactory("WebResourceMonitor"));
            webResourcePool.scheduleAtFixedRate(new WebConfigResourceMonitor(context, webURLs),
                    2000,
                    2000,
                    TimeUnit.MILLISECONDS);
        }
View Full Code Here

Examples of com.sun.faces.util.MojarraThreadFactory

        //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);
        }
View Full Code Here

Examples of com.sun.faces.util.MojarraThreadFactory

            if (LOGGER.isLoggable(Level.FINE)) {
                LOGGER.log(Level.FINE,
                           "Created new static ScheduledExecutorService with a pool size of {0}",
                           poolSize);               
            }
            service = new ScheduledThreadPoolExecutor(poolSize, new MojarraThreadFactory("ResourceCache"));
        }
        monitorTask = service.scheduleWithFixedDelay(new MonitorTask(contextName),
                                       period,
                                       period,
                                       TimeUnit.MILLISECONDS);
View Full Code Here

Examples of com.sun.faces.util.MojarraThreadFactory

        //noinspection unchecked
        Collection<URL> webURLs =
              (Collection<URL>) context.getAttribute("com.sun.faces.webresources");
        if (isDevModeEnabled() && webURLs != null && !webURLs.isEmpty()) {
            webResourcePool = new ScheduledThreadPoolExecutor(1, new MojarraThreadFactory("WebResourceMonitor"));
            webResourcePool.scheduleAtFixedRate(new WebConfigResourceMonitor(context, webURLs),
                                               2000,
                                               2000,
                                               TimeUnit.MILLISECONDS);
        }
View Full Code Here

Examples of com.sun.faces.util.MojarraThreadFactory

        //noinspection unchecked
        Collection<URL> webURLs =
                (Collection<URL>) context.getAttribute("com.sun.faces.webresources");
        if (isDevModeEnabled() && webURLs != null && !webURLs.isEmpty()) {
            webResourcePool = new ScheduledThreadPoolExecutor(1, new MojarraThreadFactory("WebResourceMonitor"));
            webResourcePool.scheduleAtFixedRate(new WebConfigResourceMonitor(context, webURLs),
                    2000,
                    2000,
                    TimeUnit.MILLISECONDS);
        }
View Full Code Here

Examples of com.sun.faces.util.MojarraThreadFactory

        //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);
        }
View Full Code Here

Examples of com.sun.faces.util.MojarraThreadFactory

        //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);
        }
View Full Code Here

Examples of com.sun.faces.util.MojarraThreadFactory

        //noinspection unchecked
        Collection<URL> webURLs =
                (Collection<URL>) context.getAttribute("com.sun.faces.webresources");
        if (isDevModeEnabled() && webURLs != null && !webURLs.isEmpty()) {
            webResourcePool = new ScheduledThreadPoolExecutor(1, new MojarraThreadFactory("WebResourceMonitor"));
            webResourcePool.scheduleAtFixedRate(new WebConfigResourceMonitor(context, webURLs),
                    2000,
                    2000,
                    TimeUnit.MILLISECONDS);
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.