|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.request.resource.caching.version.CachingResourceVersion
public class CachingResourceVersion
Caches the results of a delegating IResourceVersion instance
in a member variable. The cache will be valid for the lifetime of
this instance. It will expire the oldest entries if the maximum number
of entries is exceeded.
| Constructor Summary | |
|---|---|
CachingResourceVersion(IResourceVersion delegate)
create version cache the cache will accept up to before evicting the oldest entries. |
|
CachingResourceVersion(IResourceVersion delegate,
int maxEntries)
create version cache the cache will accept a maximum number of entries specified by maxEntries before evicting the oldest entries. |
|
| Method Summary | |
|---|---|
java.lang.String |
getVersion(IStaticCacheableResource resource)
get unique string identifying the version of the resource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CachingResourceVersion(IResourceVersion delegate)
delegate - delegating resource version provider
public CachingResourceVersion(IResourceVersion delegate,
int maxEntries)
maxEntries before evicting the oldest entries.
delegate - resource version providermaxEntries - maximum number of cache entries| Method Detail |
|---|
public java.lang.String getVersion(IStaticCacheableResource resource)
IResourceVersion
getVersion in interface IResourceVersionresource - cacheable resource
null
if version string could not be calculated
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||