Class ExistsReactiveSpecificationInterceptor

  • All Implemented Interfaces:
    DataInterceptor<java.lang.Object,​org.reactivestreams.Publisher<java.lang.Boolean>>

    @Internal
    public class ExistsReactiveSpecificationInterceptor
    extends AbstractReactiveSpecificationInterceptor<java.lang.Object,​org.reactivestreams.Publisher<java.lang.Boolean>>
    Interceptor that supports reactive exists specifications.
    Since:
    3.8
    Author:
    Nick Hensel
    • Constructor Detail

      • ExistsReactiveSpecificationInterceptor

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

      • intercept

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