Class HandlerAdapter

java.lang.Object
org.springframework.kafka.listener.adapter.HandlerAdapter

public class HandlerAdapter extends Object
A wrapper for either an InvocableHandlerMethod or DelegatingInvocableHandler. All methods delegate to the underlying handler.
  • Constructor Details

    • HandlerAdapter

      public HandlerAdapter(org.springframework.messaging.handler.invocation.InvocableHandlerMethod invokerHandlerMethod)
      Construct an instance with the provided method.
      Parameters:
      invokerHandlerMethod - the method.
    • HandlerAdapter

      public HandlerAdapter(DelegatingInvocableHandler delegatingHandler)
      Construct an instance with the provided delegating handler.
      Parameters:
      delegatingHandler - the handler.
  • Method Details

    • invoke

      public Object invoke(org.springframework.messaging.Message<?> message, Object... providedArgs) throws Exception
      Throws:
      Exception
    • getMethodAsString

      public String getMethodAsString(Object payload)
    • getBean

      public Object getBean()