Class CachingMethodInvocationValidator

java.lang.Object
io.deephaven.server.table.validation.CachingMethodInvocationValidator
All Implemented Interfaces:
MethodInvocationValidator

public class CachingMethodInvocationValidator extends Object implements 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 Details

  • 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