allOf

A function that represents an "and"-condition (conjunction of sub-conditions). This function represents the root of a condition that is not nested in a parent condition, unlike the ScopeActivationCondition.allOf function.

Return

A ScopeActivationCondition object representing the allOf-condition, which can be evaluated directly.

Parameters

body

A lambda expression that is executed in the context of the allOf-condition object to define child conditions.


The allOf method is an extension function for the ScopeActivationCondition interface, allowing you to define a new scope activation condition using the "and"-condition (conjunction of sub-conditions) logic. This method is executed in the context of the parent condition because it is an extension function and will register the body lambda function as a new allOf-condition with the parent condition it is nested in.

Parameters

body

A lambda expression that is executed in the context of the allOf-condition to define child conditions.