Class SecurityAwareMemoizingSupplier<T>

java.lang.Object
ch.tocco.nice2.dms.spi.tree.SecurityAwareMemoizingSupplier<T>
All Implemented Interfaces:
Supplier<T>

public class SecurityAwareMemoizingSupplier<T> extends Object implements Supplier<T>
Based on
invalid reference
Suppliers#memoize(Supplier)
. A supplier that invalidates the cache if the security privileges have changed.
  • Constructor Details

    • SecurityAwareMemoizingSupplier

      public SecurityAwareMemoizingSupplier(Supplier<T> delegate, SecurityManager securityManager)
  • Method Details

    • get

      public T get()
      Specified by:
      get in interface Supplier<T>