Class ExistsSpecificationInterceptor

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

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

      • ExistsSpecificationInterceptor

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

      • intercept

        public java.lang.Boolean intercept​(RepositoryMethodKey methodKey,
                                           io.micronaut.aop.MethodInvocationContext<java.lang.Object,​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