Class AbstractAsyncInterceptor<T,​R>

    • Field Detail

      • LIST_OF_OBJECTS

        protected static final io.micronaut.core.type.Argument<java.util.List<java.lang.Object>> LIST_OF_OBJECTS
    • Constructor Detail

      • AbstractAsyncInterceptor

        protected AbstractAsyncInterceptor​(@NonNull
                                           RepositoryOperations datastore)
        Default constructor.
        Parameters:
        datastore - The operations
    • Method Detail

      • getReturnType

        protected final io.micronaut.core.type.Argument<?> getReturnType​(io.micronaut.aop.MethodInvocationContext<?,​?> context)
        Description copied from class: AbstractQueryInterceptor
        Returns the return type.
        Overrides:
        getReturnType in class AbstractQueryInterceptor<T,​java.util.concurrent.CompletionStage<R>>
        Parameters:
        context - The context
        Returns:
        the return type
      • findReturnType

        protected final io.micronaut.core.type.Argument<?> findReturnType​(io.micronaut.aop.MethodInvocationContext<?,​?> context,
                                                                          io.micronaut.core.type.Argument<?> defaultArg)
      • convertNumberToReturnType

        @Nullable
        protected java.lang.Number convertNumberToReturnType​(io.micronaut.aop.MethodInvocationContext<?,​?> context,
                                                             java.lang.Number number)
        Convert a number argument if necessary.
        Parameters:
        context - The method context
        number - The number
        Returns:
        The result