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
     
  • Method Summary

    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.

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