public class RuleProxy extends Object
| Constructor | Description |
|---|---|
RuleProxy(Object target) |
Constructor that initialize the target rule.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
condition(Object message,
ValidationContext context) |
Condition of execution of the target rule.
|
void |
logExecutionTime(ValidationContext context) |
Log execution time of the target rule.
|
void |
validate(Object message,
ValidationContext context) |
Call the validation method of the target rule.
|
public RuleProxy(Object target)
target - the target rule.public void validate(Object message, ValidationContext context) throws Exception
message - the message.context - the context.Exception - in case of exceptionpublic boolean condition(Object message, ValidationContext context) throws Exception
message - the message.context - the context.Exception - in case of exceptionpublic void logExecutionTime(ValidationContext context)
context - the context.Copyright © 2025. All rights reserved.