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

Examples of org.apache.myfaces.commons.resourcehandler.resource.ResourceHandlerCache.ResourceValue


        String redirectedLibraryName = resolveLibraryName(expectedLibraryName);

        // check cache
        if(getResourceLoaderCache().containsResource(resourceName, redirectedLibraryName, contentType, localePrefix))
        {
            ResourceValue resourceValue = getResourceLoaderCache().getResource(
                    resourceName, redirectedLibraryName, contentType, localePrefix);
           
            //resource = new ResourceImpl(resourceValue.getResourceMeta(), resourceValue.getResourceLoader(),
            //        getResourceHandlerSupport(), contentType);
            resource = new ExtendedResourceImpl((ExtendedResourceMeta) resourceValue.getResourceMeta(), resourceValue.getResourceLoader(),
                    getResourceHandlerSupport(), contentType, localePrefix, redirectedLibraryName.equals(expectedLibraryName) ? null : expectedLibraryName);
        }
        else
        {
            for (ResourceLoader loader : getResourceHandlerSupport().getResourceLoaders())
View Full Code Here


        String redirectedLibraryName = resolveLibraryName(expectedLibraryName);

        // check cache
        if(getResourceLoaderCache().containsResource(resourceName, redirectedLibraryName, contentType, localePrefix))
        {
            ResourceValue resourceValue = getResourceLoaderCache().getResource(
                    resourceName, redirectedLibraryName, contentType, localePrefix);
           
            //resource = new ResourceImpl(resourceValue.getResourceMeta(), resourceValue.getResourceLoader(),
            //        getResourceHandlerSupport(), contentType);
            resource = new ExtendedResourceImpl((ExtendedResourceMeta) resourceValue.getResourceMeta(),
                                     resourceValue.getResourceLoader(),
                                     getResourceHandlerSupport(),
                                     contentType, localePrefix,
                                     redirectedLibraryName.equals(expectedLibraryName) ? null : expectedLibraryName);
        }
        else
View Full Code Here

TOP

Related Classes of org.apache.myfaces.commons.resourcehandler.resource.ResourceHandlerCache.ResourceValue

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.