Class ExistsSpecificationInterceptor

All Implemented Interfaces:
DataInterceptor<Object,Boolean>

@Internal public class ExistsSpecificationInterceptor extends AbstractSpecificationInterceptor<Object,Boolean>
Interceptor that supports exists specifications.
Since:
3.8
Author:
Nick Hensel
  • Constructor Details

    • ExistsSpecificationInterceptor

      protected ExistsSpecificationInterceptor(RepositoryOperations operations)
      Default constructor.
      Parameters:
      operations - The operations
  • Method Details

    • intercept

      public Boolean intercept(RepositoryMethodKey methodKey, io.micronaut.aop.MethodInvocationContext<Object,Boolean> context)
      Description copied from interface: DataInterceptor
      Intercepts a data method execution.
      Parameters:
      methodKey - The method key
      context - The context
      Returns:
      The result