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 Details

    • AnnotationMethodInvocationValidator

      public AnnotationMethodInvocationValidator(@NotNull @NotNull Set<String> permittedAnnotationSets)
  • Method Details

    • permitConstructor

      public Boolean permitConstructor(Constructor<?> constructor)
      Description copied from interface: MethodInvocationValidator
      Evaluate whether the provided constructor should be permitted.
      Specified by:
      permitConstructor in interface MethodInvocationValidator
      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

      public Boolean permitMethod(Method method)
      Description copied from interface: MethodInvocationValidator
      Evaluate whether the provided method should be permitted.
      Specified by:
      permitMethod in interface MethodInvocationValidator
      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