Class CountSpecificationInterceptor

All Implemented Interfaces:
DataInterceptor<Object,Number>

@Internal public class CountSpecificationInterceptor extends AbstractSpecificationInterceptor<Object,Number>
Interceptor that supports count specifications.
Since:
3.2
Author:
Denis Stepanov
  • Constructor Details

    • CountSpecificationInterceptor

      public CountSpecificationInterceptor(@NonNull @NonNull RepositoryOperations operations)
      Default constructor.
      Parameters:
      operations - The operations
  • Method Details

    • intercept

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