Class AnnotationMethodInvocationValidator
java.lang.Object
io.deephaven.server.table.validation.AnnotationMethodInvocationValidator
- All Implemented Interfaces:
MethodInvocationValidator
public class AnnotationMethodInvocationValidator
extends Object
implements MethodInvocationValidator
An invocation validator that implements the rules documented in the
UserInvocationPermitted annotation.-
Constructor Summary
ConstructorsConstructorDescriptionAnnotationMethodInvocationValidator(@NotNull Set<String> permittedAnnotationSets) -
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
-
AnnotationMethodInvocationValidator
-
-
Method Details
-
permitConstructor
Description copied from interface:MethodInvocationValidatorEvaluate whether the provided constructor should be permitted.- Specified by:
permitConstructorin 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:MethodInvocationValidatorEvaluate whether the provided method should be permitted.- Specified by:
permitMethodin 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
-