@Override public FacesContext getFacesContext(Object context, Object request, Object response, Lifecycle lifecycle) throws FacesException { FacesContext result = null; if (null != initContextServletContextMap && !initContextServletContextMap.isEmpty()) { ServletContext servletContext = (ServletContext) FactoryFinder.FACTORIES_CACHE.getServletContextForCurrentClassLoader(); if (null != servletContext) { for (Map.Entry<FacesContext, ServletContext> entry : initContextServletContextMap.entrySet()) { if (servletContext.equals(entry.getValue())) { result = entry.getKey(); break; } } } } return result; }
@Override public FacesContext getFacesContext(Object context, Object request, Object response, Lifecycle lifecycle) throws FacesException { FacesContext result = null; if (null != initContextServletContextMap && !initContextServletContextMap.isEmpty()) { ServletContext servletContext = (ServletContext) FactoryFinder.FACTORIES_CACHE.getServletContextForCurrentClassLoader(); if (null != servletContext) { for (Map.Entry<FacesContext, ServletContext> entry : initContextServletContextMap.entrySet()) { if (servletContext.equals(entry.getValue())) { result = entry.getKey(); break; } } } } return result; }
@Override public FacesContext getFacesContext(Object context, Object request, Object response, Lifecycle lifecycle) throws FacesException { FacesContext result = null; if (null != initContextServletContextMap && !initContextServletContextMap.isEmpty()) { ServletContext servletContext = (ServletContext) FactoryFinder.FACTORIES_CACHE.getServletContextForCurrentClassLoader(); if (null != servletContext) { for (Map.Entry<FacesContext, ServletContext> entry : initContextServletContextMap.entrySet()) { if (servletContext.equals(entry.getValue())) { result = entry.getKey(); break; } } } } return result; }
@Override public FacesContext getFacesContext(Object context, Object request, Object response, Lifecycle lifecycle) throws FacesException { FacesContext result = null; if (null != initContextServletContextMap && !initContextServletContextMap.isEmpty()) { ServletContext servletContext = (ServletContext) FactoryFinder.FACTORIES_CACHE.getServletContextForCurrentClassLoader(); if (null != servletContext) { for (Map.Entry<FacesContext, ServletContext> entry : initContextServletContextMap.entrySet()) { if (servletContext.equals(entry.getValue())) { result = entry.getKey(); break; } } } } return result; }
/** * Consult the initContextServletContextMap (reflectively obtained from the FacesContext in our * ctor). If it is non-empty, obtain the ServletContext corresponding to the current Thread's * context ClassLoader. If found, use the initContextServletContextMap to find the FacesContext * corresponding to that ServletContext. */ @Override public FacesContext getFacesContext(Object context, Object request, Object response, Lifecycle lifecycle) throws FacesException { FacesContext result = null; if (initContextServletContextMap != null && !initContextServletContextMap.isEmpty()) { // Obtain the ServletContext corresponding to the current Thread's context ClassLoader ServletContext servletContext = (ServletContext) FactoryFinder.FACTORIES_CACHE.getServletContextForCurrentClassLoader(); if (servletContext != null) { // ServletContext found. Use the initContextServletContextMap to find the FacesContext corresponding // to this ServletContext. for (Entry<FacesContext, ServletContext> entry : initContextServletContextMap.entrySet()) { if (servletContext.equals(entry.getValue())) { result = entry.getKey(); break; } } } } return result; }
/** * Consult the initContextServletContextMap (reflectively obtained from the FacesContext in our * ctor). If it is non-empty, obtain the ServletContext corresponding to the current Thread's * context ClassLoader. If found, use the initContextServletContextMap to find the FacesContext * corresponding to that ServletContext. */ @Override public FacesContext getFacesContext(Object context, Object request, Object response, Lifecycle lifecycle) throws FacesException { FacesContext result = null; if (initContextServletContextMap != null && !initContextServletContextMap.isEmpty()) { // Obtain the ServletContext corresponding to the current Thread's context ClassLoader ServletContext servletContext = (ServletContext) FactoryFinder.FACTORIES_CACHE.getServletContextForCurrentClassLoader(); if (servletContext != null) { // ServletContext found. Use the initContextServletContextMap to find the FacesContext corresponding // to this ServletContext. for (Entry<FacesContext, ServletContext> entry : initContextServletContextMap.entrySet()) { if (servletContext.equals(entry.getValue())) { result = entry.getKey(); break; } } } } return result; }
/** * Consult the initContextServletContextMap (reflectively obtained from the FacesContext in our * ctor). If it is non-empty, obtain the ServletContext corresponding to the current Thread's * context ClassLoader. If found, use the initContextServletContextMap to find the FacesContext * corresponding to that ServletContext. */ @Override public FacesContext getFacesContext(Object context, Object request, Object response, Lifecycle lifecycle) throws FacesException { FacesContext result = null; if (initContextServletContextMap != null && !initContextServletContextMap.isEmpty()) { // Obtain the ServletContext corresponding to the current Thread's context ClassLoader ServletContext servletContext = (ServletContext) FactoryFinder.FACTORIES_CACHE.getServletContextForCurrentClassLoader(); if (servletContext != null) { // ServletContext found. Use the initContextServletContextMap to find the FacesContext corresponding // to this ServletContext. for (Entry<FacesContext, ServletContext> entry : initContextServletContextMap.entrySet()) { if (servletContext.equals(entry.getValue())) { result = entry.getKey(); break; } } } } return result; }
/** * Consult the initContextServletContextMap (reflectively obtained from the FacesContext in our * ctor). If it is non-empty, obtain the ServletContext corresponding to the current Thread's * context ClassLoader. If found, use the initContextServletContextMap to find the FacesContext * corresponding to that ServletContext. */ @Override public FacesContext getFacesContext(Object context, Object request, Object response, Lifecycle lifecycle) throws FacesException { FacesContext result = null; if (initContextServletContextMap != null && !initContextServletContextMap.isEmpty()) { // Obtain the ServletContext corresponding to the current Thread's context ClassLoader ServletContext servletContext = (ServletContext) FactoryFinder.FACTORIES_CACHE.getServletContextForCurrentClassLoader(); if (servletContext != null) { // ServletContext found. Use the initContextServletContextMap to find the FacesContext corresponding // to this ServletContext. for (Entry<FacesContext, ServletContext> entry : initContextServletContextMap.entrySet()) { if (servletContext.equals(entry.getValue())) { result = entry.getKey(); break; } } } } return result; }