Class DefaultSaveOneReactiveInterceptor

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

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

    • DefaultSaveOneReactiveInterceptor

      protected DefaultSaveOneReactiveInterceptor(@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