Interface CustomizationSupplier<T>

  • Type Parameters:
    T - the type for the customization. Typically, extends Customization, but can be Executor as well
    All Known Subinterfaces:
    All Known Implementing Classes:
    CustomizationReferenceSupplier, CustomizationSupplierByClassName
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    public interface CustomizationSupplier<@NonNull T>
    Supplies cache customizations like ExpiryPolicy or CacheLoader. An implementation must implement proper a hashCode and equals method.

    Implementations of this class need to be bean compatible and should only define supported property types. This is needed if this supplier is used within a default configuration do a deep copy. If suppliers do not support this they must not have a default constructor, such as CustomizationReferenceSupplier.

    Jens Wilke
    • Method Detail

      • supply

        T supply​(CacheBuildContext<?,​?> buildContext)
        Create or return an existing customization instance.
        created customization, never null