Package org.apache.myfaces.commons.resourcehandler.resource

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


            //   - 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


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

TOP

Related Classes of org.apache.myfaces.commons.resourcehandler.resource.ClassLoaderResourceLoader

Copyright © 2018 www.massapicom. 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.