P
- type of ParameterProvider's parameterpublic abstract class AbstractNodeBasedCachingStrategy<P> extends Object implements CachingStrategy<P>
Node
-based CachingStrategy
/ies.Constructor and Description |
---|
AbstractNodeBasedCachingStrategy() |
Modifier and Type | Method and Description |
---|---|
String |
getCachePath(ImageGenerator<ParameterProvider<P>> generator,
ParameterProvider<P> parameterProvider)
Returns a unique path pertinent to the given generator and parameter to use for storing
the generated image.
|
protected abstract javax.jcr.Node |
getContent(P param) |
protected abstract String |
getPathOf(P param) |
protected abstract String |
getWorkspaceName(P param) |
boolean |
shouldRegenerate(info.magnolia.cms.core.NodeData cachedBinary,
ParameterProvider<P> parameterProvider)
The default implementation simply delegates this decision to ParameterProvider.
|
public String getCachePath(ImageGenerator<ParameterProvider<P>> generator, ParameterProvider<P> parameterProvider)
CachingStrategy
getCachePath
in interface CachingStrategy<P>
public boolean shouldRegenerate(info.magnolia.cms.core.NodeData cachedBinary, ParameterProvider<P> parameterProvider)
shouldRegenerate
in interface CachingStrategy<P>
protected abstract javax.jcr.Node getContent(P param)
Copyright © 2015 Magnolia International Ltd.. All rights reserved.