ResourceCachepublic interface ResourceCache Interface for Resource cache.
Defines methods which resource cache must implement.
For default implementation see {@link ResourceCacheLRUImpl}. |
Methods Summary |
---|
public boolean | addResource(Resource resource)Add Resource into cache.
| public int | getHashCodeForResource(java.lang.String base, java.lang.String locale, int id)Calculate key to resource cache.
It's calculated from base name, locale, resource id.
| public Resource | lookup(int hashCode)Lookup resource in cache. Key is hashcode of
the Resource calculated by {@link #getHashCodeForResource}
|
|