Class MetadataAugmentationCacheKeyGenerator
java.lang.Object
com.broadleafcommerce.metadata.cache.MetadataAugmentationCacheKeyGenerator
- All Implemented Interfaces:
com.broadleafcommerce.common.extension.cache.key.ContextKeyGen
,org.springframework.cache.interceptor.KeyGenerator
public class MetadataAugmentationCacheKeyGenerator
extends Object
implements com.broadleafcommerce.common.extension.cache.key.ContextKeyGen
Cache key generator for the metadata components
- Author:
- Dima Myroniuk (dmyroniuk)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
applyKeyFromArg
(Object param, int position, com.fasterxml.jackson.databind.node.ObjectNode node) Generates the cache key that consists of the component id, tenant id and application id.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.broadleafcommerce.common.extension.cache.key.ContextKeyGen
generate, generate, generateWithPrefix, getArgs, getRouteKey
-
Constructor Details
-
MetadataAugmentationCacheKeyGenerator
public MetadataAugmentationCacheKeyGenerator()
-
-
Method Details
-
applyKeyFromArg
public void applyKeyFromArg(Object param, int position, com.fasterxml.jackson.databind.node.ObjectNode node) Generates the cache key that consists of the component id, tenant id and application id.- Specified by:
applyKeyFromArg
in interfacecom.broadleafcommerce.common.extension.cache.key.ContextKeyGen
- Parameters:
param
- the filtered method paramposition
- the position of the parameter in the method signaturenode
- the node that contains the properties for the key
-