Class RuleInspector
- java.lang.Object
-
- com.broadleafcommerce.data.tracking.core.mapping.validation.rules.RuleInspector
-
public class RuleInspector extends Object
Walks the object graph of the projection object looking for any instances of fields annotated withRuleValidate
. Any SPEL expressions contained in these fields are stored asRuleInspector.RuleExpression
instances and made available for validation viaRuleValidatorManager
.- Author:
- Jeff Fischer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RuleInspector.RuleExpression
-
Constructor Summary
Constructors Constructor Description RuleInspector(Object instance, Supplier<StringValueCodec> factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<RuleInspector.RuleExpression>
getExpressions()
Retrieve all createdRuleInspector.RuleExpression
instances based on discoveredRuleValidate
annotated fields.
-
-
-
Constructor Detail
-
RuleInspector
public RuleInspector(@NonNull Object instance, @NonNull Supplier<StringValueCodec> factory)
-
-
Method Detail
-
getExpressions
public List<RuleInspector.RuleExpression> getExpressions()
Retrieve all createdRuleInspector.RuleExpression
instances based on discoveredRuleValidate
annotated fields.- Returns:
- Retrieve all created
RuleInspector.RuleExpression
instances
-
-