Interface AsCacheAwareStrategy<T>

Type Parameters:
T - - the type of the source object
All Known Subinterfaces:
AsSearchProfileCalculationStrategy<T>, AsSearchProfileLoadStrategy<T,R>
All Known Implementing Classes:
AbstractAsSearchProfileCalculationStrategy, AbstractAsSearchProfileLoadStrategy, AsGenericCategoryAwareSearchProfileLoadStrategy, AsGenericSearchProfileCalculationStrategy, AsGenericSimpleSearchProfileLoadStrategy

public interface AsCacheAwareStrategy<T>
Strategies that implement this interface can have the results cached.
  • Method Details

    • getCacheKeyFragment

      Serializable getCacheKeyFragment(AsSearchProfileContext context, T object)
      Returns a cache key fragment. In most cases implementing strategies can simply return null. If strategies can have results that depend on the context, a different implementation should be provided.
      Parameters:
      context - - the search profile context
      object - - the source object
      Returns:
      the key fragment