info.magnolia.imaging.caching
Class NullCachingStrategy<P>
java.lang.Object
info.magnolia.imaging.caching.NullCachingStrategy<P>
- Type Parameters:
P
- type of ParameterProvider's parameter
- All Implemented Interfaces:
- CachingStrategy<P>
public class NullCachingStrategy<P>
- extends Object
- implements CachingStrategy<P>
A CachingStrategy implementation that will ... never cache !
- Version:
- $Id$
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NullCachingStrategy
public NullCachingStrategy()
getCachePath
public String getCachePath(ImageGenerator<ParameterProvider<P>> parameterProviderImageGenerator,
ParameterProvider<P> parameterProvider)
- Description copied from interface:
CachingStrategy
- Returns a unique path pertinent to the given generator and parameter to use for storing
the generated image.
- Specified by:
getCachePath
in interface CachingStrategy<P>
shouldRegenerate
public boolean shouldRegenerate(info.magnolia.cms.core.NodeData cachedBinary,
ParameterProvider<P> parameterProvider)
- Description copied from interface:
CachingStrategy
- Given the currently cached generated image, determine if CachingImageStreamer should
regenerate the image. Implementations will most likely simply compare the timestamp
with their parameter if applicable, or use some other mechanism.
- Specified by:
shouldRegenerate
in interface CachingStrategy<P>
Copyright © 2014 Magnolia International Ltd.. All Rights Reserved.