org.apache.wicket.request.resource.caching.version
Class RequestCycleCachedResourceVersion
java.lang.Object
org.apache.wicket.request.resource.caching.version.RequestCycleCachedResourceVersion
- All Implemented Interfaces:
- IResourceVersion
public class RequestCycleCachedResourceVersion
- extends Object
- implements IResourceVersion
Caches the results of a delegating IResourceVersion
instance
for the lifetime of the current http request.
- Since:
- 1.5
- Author:
- Peter Ertl
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RequestCycleCachedResourceVersion
public RequestCycleCachedResourceVersion(IResourceVersion delegate)
- create request-scoped resource provider cache
- Parameters:
delegate
- resource version provider to cache
getVersion
public String getVersion(IStaticCacheableResource resource)
- Description copied from interface:
IResourceVersion
- get unique string identifying the version of the resource
- Specified by:
getVersion
in interface IResourceVersion
- Parameters:
resource
- cacheable resource
- Returns:
- unique version string or
null
if version string could not be calculated
Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.