Interface RestrictionAwareService

All Known Implementing Classes:
DefaultRestrictionAwareService

public interface RestrictionAwareService
Sets restriction information in place during the execution of a Supplier.
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    execute(RestrictionData data, Supplier<T> supplier)
    Makes restriction data available during the execution of the provided supplier.
  • Method Details

    • execute

      <T> T execute(RestrictionData data, Supplier<T> supplier)
      Makes restriction data available during the execution of the provided supplier.
      Type Parameters:
      T - The type returned by the supplier.
      Parameters:
      data - The restriction data to make available during the execution of the supplier.
      supplier - The supplier to execute.
      Returns:
      The value calculated by the supplier.