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,AsCategoryAwareSearchProfileCalculationStrategy,AsCategoryAwareSearchProfileLoadStrategy,AsGenericCategoryAwareSearchProfileLoadStrategy,AsGenericSearchProfileCalculationStrategy,AsGenericSimpleSearchProfileLoadStrategy,AsSimpleSearchProfileCalculationStrategy,AsSimpleSearchProfileLoadStrategy
public interface AsCacheAwareStrategy<T>Strategies that implement this interface can have the results cached.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.io.SerializablegetCacheKeyFragment(AsSearchProfileContext context, T object)Returns a cache key fragment.
-
-
-
Method Detail
-
getCacheKeyFragment
java.io.Serializable getCacheKeyFragment(AsSearchProfileContext context, T object)
Returns a cache key fragment. In most cases implementing strategies can simply returnnull. If strategies can have results that depend on the context, a different implementation should be provided.- Parameters:
context- - the search profile contextobject- - the source object- Returns:
- the key fragment
-
-