Class TempDirFileCacheResourceLoader

  • All Implemented Interfaces:
    FacesWrapper<ResourceLoader>

    public class TempDirFileCacheResourceLoader
    extends ResourceLoaderWrapper
    ResourceLoader that uses a temporal folder to cache resources, avoiding the problem described on MYFACES-3586 (Performance improvement in Resource loading - HIGH CPU inflating bytes in ResourceHandlerImpl.handleResourceRequest).
    Author:
    Leonardo Uribe
    • Field Detail

      • INIT_PARAM_TEMPORAL_RESOURCEHANDLER_CACHE_ENABLED

        @JSFWebConfigParam(since="2.1.11",
                           expectedValues="true, false",
                           defaultValue="false")
        public static final String INIT_PARAM_TEMPORAL_RESOURCEHANDLER_CACHE_ENABLED
        If this param is set to true (default false), a temporal directory is created and all files handled by this ResourceLoader are cached there, avoiding the problem described on MYFACES-3586. (Performance improvement in Resource loading - HIGH CPU inflating bytes in ResourceHandlerImpl.handleResourceRequest).
        See Also:
        Constant Field Values
      • INIT_PARAM_TEMPORAL_RESOURCEHANDLER_CACHE_ENABLED_DEFAULT

        public static final boolean INIT_PARAM_TEMPORAL_RESOURCEHANDLER_CACHE_ENABLED_DEFAULT
        See Also:
        Constant Field Values
    • Constructor Detail

      • TempDirFileCacheResourceLoader

        public TempDirFileCacheResourceLoader​(ResourceLoader delegate)