Document composite rules about their thread unsafety

Resolves #320
pull/324/head
Mahmoud Ben Hassine 4 years ago
parent 01d8861d44
commit 0755a578ba
No known key found for this signature in database
GPG Key ID: 2B4156D07E8A1737

@ -33,6 +33,8 @@ import java.util.TreeSet;
* rule and ignores other rules in the group (XOR logic).
* Rules are first sorted by their natural order (priority by default) within the group.
*
* <strong>This class is not thread-safe.</strong>
*
* @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/
public class ActivationRuleGroup extends CompositeRule {

@ -35,6 +35,9 @@ import java.util.TreeSet;
/**
* Base class representing a composite rule composed of a set of rules.
*
* <strong>This class is not thread-safe.
* Sub-classes are inherently not thread-safe.</strong>
*
* @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/

@ -37,6 +37,8 @@ import java.util.Set;
* priority acts as a condition: if the rule with the highest priority evaluates
* to true, then we try to evaluate the rest of the rules and execute the ones
* that evaluate to true.
*
* <strong>This class is not thread-safe.</strong>
*
* @author Dag Framstad (dagframstad@gmail.com)
*/

@ -29,6 +29,8 @@ import org.jeasy.rules.api.Rule;
/**
* A unit rule group is a composite rule that acts as a unit: Either all rules are
* applied or nothing is applied (all or nothing semantic).
*
* <strong>This class is not thread-safe.</strong>
*
* @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/

Loading…
Cancel
Save