Class ResourceCache<V>

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.Object,​java.lang.Object>, Cache<java.lang.Object,​java.lang.Object>

    public class ResourceCache<V>
    extends ResourceCache<org.zkoss.web.util.resource.ResourceInfo,​V>
    Used to cache Servlet resources. It is used with ResourceCaches and ResourceLoader.
    Since:
    6.0.0
    Author:
    tomyeh
    See Also:
    Serialized Form
    • Constructor Detail

      • ResourceCache

        public ResourceCache​(ResourceLoader<V> loader)
        Constructor.
        Parameters:
        loader - the loader to load resource
      • ResourceCache

        public ResourceCache​(ResourceLoader<V> loader,
                             int initsz)
        Constructor.
        Parameters:
        loader - the loader to load resource
        initsz - the initial size of the map