Class 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 Detail

      • CustomizationReferenceSupplier

        public CustomizationReferenceSupplier​(@NonNull
                                              @NonNull T obj)
        Construct a customization factory that returns always the same object instance.
        Parameters:
        obj - reference to a customization. Not null.