Class DefaultUpdateInterceptor<T>

  • Type Parameters:
    T - The declaring type
    All Implemented Interfaces:
    io.micronaut.data.intercept.DataInterceptor<T,​java.lang.Object>, io.micronaut.data.intercept.UpdateInterceptor<T>

    public class DefaultUpdateInterceptor<T>
    extends AbstractQueryInterceptor<T,​java.lang.Object>
    implements io.micronaut.data.intercept.UpdateInterceptor<T>
    Default implementation of UpdateInterceptor.
    Since:
    1.0.0
    • Constructor Detail

      • DefaultUpdateInterceptor

        public DefaultUpdateInterceptor​(@NonNull
                                        io.micronaut.data.operations.RepositoryOperations datastore)
        Default constructor.
        Parameters:
        datastore - The operations
    • Method Detail

      • intercept

        public java.lang.Object intercept​(io.micronaut.data.intercept.RepositoryMethodKey methodKey,
                                          io.micronaut.aop.MethodInvocationContext<T,​java.lang.Object> context)
        Specified by:
        intercept in interface io.micronaut.data.intercept.DataInterceptor<T,​java.lang.Object>