Class HandleMessageAdviceAdapter

java.lang.Object
org.springframework.integration.handler.advice.HandleMessageAdviceAdapter
All Implemented Interfaces:
org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor, HandleMessageAdvice

public class HandleMessageAdviceAdapter
extends java.lang.Object
implements HandleMessageAdvice
A HandleMessageAdvice implementation with a plain delegation to the provided MethodInterceptor.

This advice should be used for consumer endpoints to proxy exactly a MessageHandler.handleMessage(org.springframework.messaging.Message<?>) and the whole-subflow therefore; unlike regular proxying which is applied only for the AbstractReplyProducingMessageHandler.RequestHandler.handleRequestMessage(org.springframework.messaging.Message<?>).

Since:
5.3
  • Constructor Summary

    Constructors 
    Constructor Description
    HandleMessageAdviceAdapter​(org.aopalliance.intercept.MethodInterceptor delegate)  
  • Method Summary

    Modifier and Type Method Description
    java.lang.Object invoke​(org.aopalliance.intercept.MethodInvocation invocation)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • invoke

      public java.lang.Object invoke​(org.aopalliance.intercept.MethodInvocation invocation) throws java.lang.Throwable
      Specified by:
      invoke in interface org.aopalliance.intercept.MethodInterceptor
      Throws:
      java.lang.Throwable