Class 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 Detail

      • MetadataAugmentationCacheKeyGenerator

        public MetadataAugmentationCacheKeyGenerator()
    • 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 interface com.broadleafcommerce.common.extension.cache.key.ContextKeyGen
        Parameters:
        param - the filtered method param
        position - the position of the parameter in the method signature
        node - the node that contains the properties for the key