Class ResourceCache

java.lang.Object
com.sun.faces.application.resource.ResourceCache

public class ResourceCache extends Object

This is the caching mechanism for caching ResourceInfo instances to offset the cost of looking up the resource.

This cache uses a background thread to check for modifications to the underlying webapp or JAR files containing resources. This check is periodic, configurable via context init param com.sun.faces.resourceUpdateCheckPeriod. Through this config option, the cache can also be made static or completely disabled. If the value of of this option is 0, then no check will be made making the cache static. If value of this option is less than 0, then no caching will be perfomed. Otherwise, the value of the option will be the number of minutes between modification checks.