public class MethodInvokingMessageHandler extends AbstractMessageHandler
MessageHandler
that invokes the specified method on the provided object.logger
Constructor and Description |
---|
MethodInvokingMessageHandler(java.lang.Object object,
java.lang.reflect.Method method) |
MethodInvokingMessageHandler(java.lang.Object object,
java.lang.String methodName) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getComponentType()
Subclasses may implement this method to provide component type information.
|
protected void |
handleMessageInternal(Message<?> message) |
void |
setComponentType(java.lang.String componentType) |
getOrder, handleMessage, setOrder, setShouldTrack
afterPropertiesSet, getApplicationContextId, getBeanFactory, getComponentName, getConversionService, getIntegrationProperties, getIntegrationProperty, getTaskScheduler, onInit, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setConversionService, setTaskScheduler, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getComponentName
public MethodInvokingMessageHandler(java.lang.Object object, java.lang.reflect.Method method)
public MethodInvokingMessageHandler(java.lang.Object object, java.lang.String methodName)
public void setComponentType(java.lang.String componentType)
public java.lang.String getComponentType()
IntegrationObjectSupport
getComponentType
in interface NamedComponent
getComponentType
in class AbstractMessageHandler
protected void handleMessageInternal(Message<?> message) throws java.lang.Exception
handleMessageInternal
in class AbstractMessageHandler
java.lang.Exception