|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.integration.handler.MessageMappingMethodInvoker
org.springframework.integration.handler.MethodInvokingMessageHandler
public class MethodInvokingMessageHandler
A MessageHandler
that invokes the specified method on the provided object.
Field Summary |
---|
Fields inherited from class org.springframework.integration.handler.MessageMappingMethodInvoker |
---|
logger |
Constructor Summary | |
---|---|
MethodInvokingMessageHandler(java.lang.Object object,
java.lang.reflect.Method method)
|
|
MethodInvokingMessageHandler(java.lang.Object object,
java.lang.String methodName)
|
Method Summary | |
---|---|
void |
handleMessage(Message<?> message)
Handles the message if possible. |
Methods inherited from class org.springframework.integration.handler.MessageMappingMethodInvoker |
---|
invokeMethod |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MethodInvokingMessageHandler(java.lang.Object object, java.lang.reflect.Method method)
public MethodInvokingMessageHandler(java.lang.Object object, java.lang.String methodName)
Method Detail |
---|
public void handleMessage(Message<?> message)
MessageHandler
MessageRejectedException
e.g.
in case of a Selective Consumer. When a consumer tries to handle a
message, but fails to do so, a MessageHandlingException
is
thrown. In the last case it is recommended to treat the message as tainted
and go into an error scenario.
When the handling results in a message being sent failure to send that
message will result in a MessageDeliveryException
.
handleMessage
in interface MessageHandler
message
- the message to be handled
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |