Class FindPageSpecificationInterceptor

  • All Implemented Interfaces:
    DataInterceptor<java.lang.Object,​java.lang.Object>

    @Internal
    public class FindPageSpecificationInterceptor
    extends AbstractSpecificationInterceptor<java.lang.Object,​java.lang.Object>
    Runtime implementation of Page find(Specification, Pageable).
    Since:
    3.1
    Author:
    graemerocher, Denis Stepanov
    • Constructor Detail

      • FindPageSpecificationInterceptor

        protected FindPageSpecificationInterceptor​(@NonNull
                                                   RepositoryOperations operations)
        Default constructor.
        Parameters:
        operations - The operations
    • Method Detail

      • getPageable

        protected final Pageable getPageable​(io.micronaut.aop.MethodInvocationContext<?,​?> context)
        Description copied from class: AbstractQueryInterceptor
        Resolves the Pageable for the given context.
        Overrides:
        getPageable in class AbstractQueryInterceptor<java.lang.Object,​java.lang.Object>
        Parameters:
        context - The pageable
        Returns:
        The pageable or null
      • intercept

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