Class DefaultUpdateEntityReactiveInterceptor

All Implemented Interfaces:
DataInterceptor<Object,Object>, UpdateEntityReactiveInterceptor<Object,Object>

public class DefaultUpdateEntityReactiveInterceptor extends AbstractReactiveInterceptor<Object,Object> implements UpdateEntityReactiveInterceptor<Object,Object>
Default implementation of UpdateEntityReactiveInterceptor.
Since:
1.0.0
Author:
graemerocher
  • Constructor Details

    • DefaultUpdateEntityReactiveInterceptor

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

    • interceptPublisher

      public 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