Examples of ExternalContextResourceLoader


Examples of org.apache.myfaces.commons.resourcehandler.resource.ExternalContextResourceLoader

            //   - a compressed version is available (created in constructor)
            //   - the user agent supports compresssion
            if (/*!_developmentStage && */isGzipResourcesEnabled() && isCacheDiskGzipResources())
            {
                _resourceLoaders = new ResourceLoader[] {
                        new GZIPResourceLoader(new ExtendedResourceLoaderWrapper(new ExternalContextResourceLoader("/resources")), this),
                        new GZIPResourceLoader(new ExtendedResourceLoaderWrapper(new ClassLoaderResourceLoader("META-INF/resources")), this)
                };
            }
            else
            {
                _resourceLoaders = new ResourceLoader[] {
                        new ExtendedResourceLoaderWrapper(new ExternalContextResourceLoader("/resources")),
                        new ExtendedResourceLoaderWrapper(new ClassLoaderResourceLoader("META-INF/resources"))
                };
            }
        }
        return _resourceLoaders;
View Full Code Here

Examples of org.apache.myfaces.commons.resourcehandler.resource.ExternalContextResourceLoader

    public ResourceLoader[] getResourceLoaders()
    {
        if (_resourceLoaders == null)
        {
            _resourceLoaders = new ResourceLoader[] {
                    new ExtendedResourceLoaderWrapper(new ExternalContextResourceLoader("/resources")),
                    new ExtendedResourceLoaderWrapper(new ClassLoaderResourceLoader("META-INF/resources"))
            };
        }
        return _resourceLoaders;
    }
View Full Code Here

Examples of org.apache.myfaces.resource.ExternalContextResourceLoader

        if (_resourceLoaders == null)
        {
            //The ExternalContextResourceLoader has precedence over
            //ClassLoaderResourceLoader, so it goes first.
            _resourceLoaders = new ResourceLoader[] {
                    new ExternalContextResourceLoader("/resources"),
                    new ClassLoaderResourceLoader("META-INF/resources")
            };
        }
        return _resourceLoaders;
    }
View Full Code Here

Examples of org.apache.myfaces.resource.ExternalContextResourceLoader

            //The ExternalContextResourceLoader has precedence over
            //ClassLoaderResourceLoader, so it goes first.
            if (FacesContext.getCurrentInstance().isProjectStage(ProjectStage.Development))
            {
                _resourceLoaders = new ResourceLoader[] {
                        new ExternalContextResourceLoader("/resources"),
                        new ClassLoaderResourceLoader("META-INF/resources"),
                        new InternalClassLoaderResourceLoader("META-INF/internal-resources")
                };
            }
            else
            {
                _resourceLoaders = new ResourceLoader[] {
                        new ExternalContextResourceLoader("/resources"),
                        new ClassLoaderResourceLoader("META-INF/resources")
                };
            }
        }
        return _resourceLoaders;
View Full Code Here

Examples of org.apache.myfaces.shared.resource.ExternalContextResourceLoader

            if (facesContext.isProjectStage(ProjectStage.Development) ||
                 !renderedJSFJS.equals(ResourceUtils.JSF_MYFACES_JSFJS_NORMAL))
            {
                _resourceLoaders = new ResourceLoader[] {
                        new ExternalContextResourceLoader(RESOURCES),
                        new InternalClassLoaderResourceLoader(META_INF_INTERNAL_RESOURCES),
                        new ClassLoaderResourceLoader(META_INF_RESOURCES)
                };
            }
            else
            {
                _resourceLoaders = new ResourceLoader[] {
                        new ExternalContextResourceLoader(RESOURCES),
                        new ClassLoaderResourceLoader(META_INF_RESOURCES)
                };
            }
        }
        return _resourceLoaders;
View Full Code Here

Examples of org.apache.myfaces.shared.resource.ExternalContextResourceLoader

            if (facesContext.isProjectStage(ProjectStage.Development) ||
                 !renderedJSFJS.equals(ResourceUtils.JSF_MYFACES_JSFJS_NORMAL))
            {
                _resourceLoaders = new ResourceLoader[] {
                        new ExternalContextResourceLoader(RESOURCES),
                        new InternalClassLoaderResourceLoader(META_INF_INTERNAL_RESOURCES),
                        new ClassLoaderResourceLoader(META_INF_RESOURCES)
                };
            }
            else
            {
                _resourceLoaders = new ResourceLoader[] {
                        new ExternalContextResourceLoader(RESOURCES),
                        new ClassLoaderResourceLoader(META_INF_RESOURCES)
                };
            }
        }
        return _resourceLoaders;
View Full Code Here

Examples of org.apache.myfaces.shared.resource.ExternalContextResourceLoader

            //The ExternalContextResourceLoader has precedence over
            //ClassLoaderResourceLoader, so it goes first.
            if (FacesContext.getCurrentInstance().isProjectStage(ProjectStage.Development))
            {
                _resourceLoaders = new ResourceLoader[] {
                        new ExternalContextResourceLoader("/resources"),
                        new ClassLoaderResourceLoader("META-INF/resources"),
                        new InternalClassLoaderResourceLoader("META-INF/internal-resources")
                };
            }
            else
            {
                _resourceLoaders = new ResourceLoader[] {
                        new ExternalContextResourceLoader("/resources"),
                        new ClassLoaderResourceLoader("META-INF/resources")
                };
            }
        }
        return _resourceLoaders;
View Full Code Here

Examples of org.apache.myfaces.shared.resource.ExternalContextResourceLoader

            //The ExternalContextResourceLoader has precedence over
            //ClassLoaderResourceLoader, so it goes first.
            if (FacesContext.getCurrentInstance().isProjectStage(ProjectStage.Development))
            {
                _resourceLoaders = new ResourceLoader[] {
                        new ExternalContextResourceLoader("/resources"),
                        new ClassLoaderResourceLoader("META-INF/resources"),
                        new InternalClassLoaderResourceLoader("META-INF/internal-resources")
                };
            }
            else
            {
                _resourceLoaders = new ResourceLoader[] {
                        new ExternalContextResourceLoader("/resources"),
                        new ClassLoaderResourceLoader("META-INF/resources")
                };
            }
        }
        return _resourceLoaders;
View Full Code Here

Examples of org.apache.myfaces.shared.resource.ExternalContextResourceLoader

                if (facesContext.isProjectStage(ProjectStage.Development) ||
                     !renderedJSFJS.equals(ResourceUtils.JSF_MYFACES_JSFJS_NORMAL))
                {
                    _resourceLoaders = new ResourceLoader[] {
                            new TempDirFileCacheResourceLoader(new ExternalContextResourceLoader(RESOURCES)),
                            new TempDirFileCacheResourceLoader(
                                             new InternalClassLoaderResourceLoader(META_INF_INTERNAL_RESOURCES)),
                            new TempDirFileCacheResourceLoader(new ClassLoaderResourceLoader(META_INF_RESOURCES))
                    };
                }
                else
                {
                    _resourceLoaders = new ResourceLoader[] {
                            new TempDirFileCacheResourceLoader(new ExternalContextResourceLoader(RESOURCES)),
                            new TempDirFileCacheResourceLoader(new ClassLoaderResourceLoader(META_INF_RESOURCES))
                    };
                }
            }
            else
            {           
                //The ExternalContextResourceLoader has precedence over
                //ClassLoaderResourceLoader, so it goes first.
                String renderedJSFJS = WebConfigParamUtils.getStringInitParameter(facesContext.getExternalContext(),
                        InternalClassLoaderResourceLoader.MYFACES_JSF_MODE,
                        ResourceUtils.JSF_MYFACES_JSFJS_NORMAL);

                if (facesContext.isProjectStage(ProjectStage.Development) ||
                     !renderedJSFJS.equals(ResourceUtils.JSF_MYFACES_JSFJS_NORMAL))
                {
                    _resourceLoaders = new ResourceLoader[] {
                            new ExternalContextResourceLoader(RESOURCES),
                            new InternalClassLoaderResourceLoader(META_INF_INTERNAL_RESOURCES),
                            new ClassLoaderResourceLoader(META_INF_RESOURCES)
                    };
                }
                else
                {
                    _resourceLoaders = new ResourceLoader[] {
                            new ExternalContextResourceLoader(RESOURCES),
                            new ClassLoaderResourceLoader(META_INF_RESOURCES)
                    };
                }
            }
        }
View Full Code Here

Examples of org.apache.myfaces.shared.resource.ExternalContextResourceLoader

                if (facesContext.isProjectStage(ProjectStage.Development) ||
                     !renderedJSFJS.equals(ResourceUtils.JSF_MYFACES_JSFJS_NORMAL))
                {
                    _resourceLoaders = new ResourceLoader[] {
                            new TempDirFileCacheResourceLoader(new ExternalContextResourceLoader("/"+directory)),
                            new TempDirFileCacheResourceLoader(new FacesFlowClassLoaderResourceLoader()),
                            new TempDirFileCacheResourceLoader(
                                             new InternalClassLoaderResourceLoader(META_INF_INTERNAL_RESOURCES)),
                            new TempDirFileCacheResourceLoader(new ClassLoaderResourceLoader(META_INF_RESOURCES))
                    };
                }
                else
                {
                    _resourceLoaders = new ResourceLoader[] {
                            new TempDirFileCacheResourceLoader(new ExternalContextResourceLoader("/"+directory)),
                            new TempDirFileCacheResourceLoader(new FacesFlowClassLoaderResourceLoader()),
                            new TempDirFileCacheResourceLoader(new ClassLoaderResourceLoader(META_INF_RESOURCES))
                    };
                }
            }
            else
            {           
                //The ExternalContextResourceLoader has precedence over
                //ClassLoaderResourceLoader, so it goes first.
                String renderedJSFJS = WebConfigParamUtils.getStringInitParameter(facesContext.getExternalContext(),
                        InternalClassLoaderResourceLoader.MYFACES_JSF_MODE,
                        ResourceUtils.JSF_MYFACES_JSFJS_NORMAL);

                if (facesContext.isProjectStage(ProjectStage.Development) ||
                     !renderedJSFJS.equals(ResourceUtils.JSF_MYFACES_JSFJS_NORMAL))
                {
                    _resourceLoaders = new ResourceLoader[] {
                            new ExternalContextResourceLoader("/"+directory),
                            new FacesFlowClassLoaderResourceLoader(),
                            new InternalClassLoaderResourceLoader(META_INF_INTERNAL_RESOURCES),
                            new ClassLoaderResourceLoader(META_INF_RESOURCES)
                    };
                }
                else
                {
                    _resourceLoaders = new ResourceLoader[] {
                            new ExternalContextResourceLoader("/"+directory),
                            new FacesFlowClassLoaderResourceLoader(),
                            new ClassLoaderResourceLoader(META_INF_RESOURCES)
                    };
                }
            }
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.