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 Summary
Constructors Constructor Description CustomizationReferenceSupplier(@NonNull T obj)
Construct a customization factory that returns always the same object instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(@Nullable Object other)
int
hashCode()
T
supply(CacheBuildContext<?,?> ignored)
Create or return an existing customization instance.
-
-
-
Method Detail
-
supply
public T supply(CacheBuildContext<?,?> ignored)
Description copied from interface:CustomizationSupplier
Create or return an existing customization instance.- Specified by:
supply
in interfaceCustomizationSupplier<T>
- Returns:
- created customization, never
null
-
-