Interface RestrictionAwareService

  • All Known Implementing Classes:
    DefaultRestrictionAwareService

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

      • execute

        <T> T execute​(RestrictionData data,
                      java.util.function.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.