@FunctionalInterface public interface UpdateInterceptor
This interface can be used to implement custom behaviors before an operation is carried out, such as validation, transformation, or cancellation of the operation based on the method parameters or other conditions.
Modifier and Type | Method and Description |
---|---|
boolean |
update(String methodName,
Object t)
Potentially modifies the provided argument and determines whether to proceed with
the operation that was intercepted.
|
boolean update(String methodName, Object t) throws IllegalArgumentException
methodName
- the name of the method that was interceptedt
- the input argument to the method - for a method call with multiple arguments,
only the last one is passed. This object may be modified by this method.IllegalArgumentException
- if t
is an instance of Validatable and its validation failsCopyright © 2024. All rights reserved.