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 Constructor Description MetadataAugmentationCacheKeyGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Method Detail
-
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
-
-