Package org.cache2k.config
Class CustomizationReferenceSupplier<T>
- java.lang.Object
- 
- org.cache2k.config.CustomizationReferenceSupplier<T>
 
- 
- All Implemented Interfaces:
- CustomizationSupplier<T>
 
 public final class CustomizationReferenceSupplier<@NonNull T> extends Object implements CustomizationSupplier<T> A reference to the customization to be used is set while building the cache. The reference is returned. The class loader is ignored.- Author:
- Jens Wilke
 
- 
- 
Constructor SummaryConstructors Constructor Description CustomizationReferenceSupplier(@NonNull T obj)Construct a customization factory that returns always the same object instance.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(@Nullable Object other)inthashCode()Tsupply(CacheBuildContext<?,?> ignored)Create or return an existing customization instance.
 
- 
- 
- 
Method Detail- 
supplypublic T supply(CacheBuildContext<?,?> ignored) Description copied from interface:CustomizationSupplierCreate or return an existing customization instance.- Specified by:
- supplyin interface- CustomizationSupplier<T>
- Returns:
- created customization, never null
 
 
- 
 
-