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 Details

    • 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:
    • INIT_PARAM_TEMPORAL_RESOURCEHANDLER_CACHE_ENABLED_DEFAULT

      public static final boolean INIT_PARAM_TEMPORAL_RESOURCEHANDLER_CACHE_ENABLED_DEFAULT
      See Also:
    • TEMP_FILES_LOCK_MAP

      public static final String TEMP_FILES_LOCK_MAP
      See Also:
  • Constructor Details

    • TempDirFileCacheResourceLoader

      public TempDirFileCacheResourceLoader(ResourceLoader delegate)
  • Method Details