Interface RestrictionAwareService
-
- All Known Implementing Classes:
DefaultRestrictionAwareService
public interface RestrictionAwareServiceSets restriction information in place during the execution of aSupplier.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> Texecute(RestrictionData data, java.util.function.Supplier<T> supplier)Makes restriction data available during the execution of the provided 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.
-
-