Class HandlerAdapter
- java.lang.Object
-
- org.springframework.kafka.listener.adapter.HandlerAdapter
-
public class HandlerAdapter extends java.lang.Object
A wrapper for either anInvocableHandlerMethod
orDelegatingInvocableHandler
. All methods delegate to the underlying handler.
-
-
Constructor Summary
Constructors Constructor Description HandlerAdapter(DelegatingInvocableHandler delegatingHandler)
Construct an instance with the provided delegating handler.HandlerAdapter(org.springframework.messaging.handler.invocation.InvocableHandlerMethod invokerHandlerMethod)
Construct an instance with the provided method.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getBean()
java.lang.String
getMethodAsString(java.lang.Object payload)
java.lang.Object
invoke(org.springframework.messaging.Message<?> message, java.lang.Object... providedArgs)
-
-
-
Constructor Detail
-
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 Detail
-
invoke
public java.lang.Object invoke(org.springframework.messaging.Message<?> message, java.lang.Object... providedArgs) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getMethodAsString
public java.lang.String getMethodAsString(java.lang.Object payload)
-
getBean
public java.lang.Object getBean()
-
-