public final class CustomizationReferenceSupplier<T> extends Object implements CustomizationSupplier<T>
| Constructor and Description |
|---|
CustomizationReferenceSupplier(T obj)
Construct a customization factory that returns always the same object instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
int |
hashCode() |
T |
supply(CacheManager ignored)
Create or return an existing customization instance.
|
public CustomizationReferenceSupplier(T obj)
obj - reference to a customization. Not null.public T supply(CacheManager ignored)
CustomizationSupplierDeveloper note: The interface lacks context where the customization is used, e.g. the cache name. With the cache name, different customizations could share data or expose themselves
supply in interface CustomizationSupplier<T>ignored - The manager can be used to retrieve the class loader or
additional properties needed to configure the customization.cache2k API documentation. Copyright © 2000–2019 headissue GmbH, Munich.