Class CachingMethodInvocationValidator
java.lang.Object
io.deephaven.server.table.validation.CachingMethodInvocationValidator
- All Implemented Interfaces:
MethodInvocationValidator
A MethodInvocationValidator that caches all results of an underlying MethodInvocationValidator.
This caching layer is not suitable for use with a method validator that produces different results based on context (e.g., permitting some users to execute methods that others may not).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionpermitConstructor
(Constructor<?> constructor) Evaluate whether the provided constructor should be permitted.permitMethod
(Method method) Evaluate whether the provided method should be permitted.
-
Constructor Details
-
CachingMethodInvocationValidator
-
-
Method Details
-
permitConstructor
Description copied from interface:MethodInvocationValidator
Evaluate whether the provided constructor should be permitted.- Specified by:
permitConstructor
in interfaceMethodInvocationValidator
- Parameters:
constructor
- the constructor to evaluate- Returns:
- true if the constructor should be permitted, false if it should not be permitted, or null if this validator has no opinion
-
permitMethod
Description copied from interface:MethodInvocationValidator
Evaluate whether the provided method should be permitted.- Specified by:
permitMethod
in interfaceMethodInvocationValidator
- Parameters:
method
- the constructor to evaluate- Returns:
- true if the method should be permitted, false if it should not be permitted, or null if this validator has no opinion
-