Interface InterceptedMethod

    • Method Detail

      • returnTypeValue

        io.micronaut.core.type.Argument<?> returnTypeValue()
        Returns result type value.
        Returns:
        The return type value.
      • interceptResult

        java.lang.Object interceptResult()
        Proceeds with invocation of InvocationContext.proceed() and converts result to appropriate type.
        Returns:
        The intercepted result
      • interceptResult

        java.lang.Object interceptResult​(Interceptor<?,​?> from)
        Proceeds with invocation of InvocationContext.proceed(Interceptor) and converts result to appropriate type.
        Parameters:
        from - The interceptor to start from
        Returns:
        The intercepted result
      • interceptResultAsCompletionStage

        default java.util.concurrent.CompletionStage<?> interceptResultAsCompletionStage()
        Proceeds with invocation of InvocationContext.proceed() and converts result to CompletionStage.
        Returns:
        The intercepted result
      • interceptResultAsPublisher

        default org.reactivestreams.Publisher<?> interceptResultAsPublisher()
        Proceeds with invocation of InvocationContext.proceed() and converts result to Publisher.
        Returns:
        The intercepted result
      • interceptResultAsPublisher

        default org.reactivestreams.Publisher<?> interceptResultAsPublisher​(java.util.concurrent.ExecutorService executorService)
        Proceeds with invocation of InvocationContext.proceed() and converts result to Publisher.
        Parameters:
        executorService - The executor service to subscribe on
        Returns:
        The intercepted result
      • interceptResultAsCompletionStage

        default java.util.concurrent.CompletionStage<?> interceptResultAsCompletionStage​(Interceptor<?,​?> from)
        Proceeds with invocation of InvocationContext.proceed(Interceptor) and converts result to CompletionStage.
        Parameters:
        from - The interceptor to start from
        Returns:
        The intercepted result
      • interceptResultAsPublisher

        default org.reactivestreams.Publisher<?> interceptResultAsPublisher​(Interceptor<?,​?> from)
        Proceeds with invocation of InvocationContext.proceed(Interceptor) and converts result to Publisher.
        Parameters:
        from - The interceptor to start from
        Returns:
        The intercepted result
      • handleResult

        java.lang.Object handleResult​(java.lang.Object result)
        Handle the value that should be the result of the invocation.
        Parameters:
        result - The result of the invocation
        Returns:
        The result of the invocation being returned from the interceptor
      • handleException

        <E extends java.lang.Throwable> java.lang.Object handleException​(java.lang.Exception exception)
                                                                  throws E extends java.lang.Throwable
        Handle the exception that should be thrown out of the invocation.
        Type Parameters:
        E - Sneaky throws helper
        Parameters:
        exception - The exception
        Returns:
        The result of the invocation being returned from the interceptor
        Throws:
        E - The exception
        E extends java.lang.Throwable
      • unsupported

        default java.lang.Object unsupported()
        Indicated unsupported return type.
        Returns:
        The result of the invocation being returned from the interceptor