Class AbstractPublisherInterceptor

All Implemented Interfaces:
DataInterceptor<Object,Object>
Direct Known Subclasses:
AbstractSpecificationInterceptor, DefaultCountReactiveInterceptor, DefaultExistsByReactiveInterceptor, DefaultFindAllReactiveInterceptor, DefaultFindByIdReactiveInterceptor, DefaultFindOneReactiveInterceptor, DefaultFindPageReactiveInterceptor, DefaultFindSliceReactiveInterceptor, DefaultProcedureReactiveInterceptor, DefaultUpdateReactiveInterceptor

@Internal public abstract class AbstractPublisherInterceptor extends AbstractReactiveInterceptor<Object,Object>
Publisher interceptor.
Since:
3.5.0
Author:
Denis Stepanov
  • Constructor Details

    • AbstractPublisherInterceptor

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

    • interceptPublisher

      protected abstract org.reactivestreams.Publisher<?> interceptPublisher(RepositoryMethodKey methodKey, io.micronaut.aop.MethodInvocationContext<Object,Object> context)
      Intercept publisher.
      Parameters:
      methodKey - The method key
      context - The context
      Returns:
      the result publisher
    • intercept

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