private void verifyFactoriesExist(ServletContext servletContext) { if (validateFactories) { Deque<Exception> exceptions = new ConcurrentLinkedDeque<>(); ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader(); try { factoryNames.stream().forEach(e -> { Thread.currentThread().setContextClassLoader(contextClassLoader); InitFacesContext.getInstance(servletContext); try { FactoryFinder.getFactory(e); } catch (Exception exception) { exception.printStackTrace(); exceptions.add(new ConfigurationException(format("Factory ''{0}'' was not configured properly.", e), exception)); } finally { Thread.currentThread().setContextClassLoader(null); } }); } finally { Thread.currentThread().setContextClassLoader(contextClassLoader); } } }
private void verifyFactoriesExist(ServletContext servletContext) { if (validateFactories) { Deque<Exception> exceptions = new ConcurrentLinkedDeque<>(); ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader(); try { factoryNames.stream().forEach(e -> { Thread.currentThread().setContextClassLoader(contextClassLoader); InitFacesContext.getInstance(servletContext); try { FactoryFinder.getFactory(e); } catch (Exception exception) { exception.printStackTrace(); exceptions.add(new ConfigurationException(format("Factory ''{0}'' was not configured properly.", e), exception)); } finally { Thread.currentThread().setContextClassLoader(null); } }); } finally { Thread.currentThread().setContextClassLoader(contextClassLoader); } } }
private void verifyFactoriesExist(ServletContext servletContext) { if (validateFactories) { Deque<Exception> exceptions = new ConcurrentLinkedDeque<>(); ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader(); try { factoryNames.stream().forEach(e -> { Thread.currentThread().setContextClassLoader(contextClassLoader); InitFacesContext.getInstance(servletContext); try { FactoryFinder.getFactory(e); } catch (Exception exception) { exception.printStackTrace(); exceptions.add(new ConfigurationException(format("Factory ''{0}'' was not configured properly.", e), exception)); } finally { Thread.currentThread().setContextClassLoader(null); } }); } finally { Thread.currentThread().setContextClassLoader(contextClassLoader); } } }
if (currentThreadId != parentThreadId) { Thread.currentThread().setContextClassLoader(parentContextClassLoader); initFacesContext = InitFacesContext.getInstance(servletContext); if (parentWebContext != null) { threadContext.propagateWebContextToChild(parentWebContext);
if (currentThreadId != parentThreadId) { Thread.currentThread().setContextClassLoader(parentContextClassLoader); initFacesContext = InitFacesContext.getInstance(servletContext); if (parentWebContext != null) { threadContext.propagateWebContextToChild(parentWebContext);
if (currentThreadId != parentThreadId) { Thread.currentThread().setContextClassLoader(parentContextClassLoader); initFacesContext = InitFacesContext.getInstance(servletContext); if (parentWebContext != null) { threadContext.propagateWebContextToChild(parentWebContext);