public interface MethodReturnValueHandler
DefaultMethodEndpointAdapter
to be
indefinitely extensible.Modifier and Type | Method and Description |
---|---|
void |
handleReturnValue(MessageContext messageContext,
MethodParameter returnType,
Object returnValue)
Handles the given return value.
|
boolean |
supportsReturnType(MethodParameter returnType)
Indicates whether the given method return type is supported by this handler.
|
boolean supportsReturnType(MethodParameter returnType)
returnType
- the method return type to checktrue
if this handler supports the supplied return type; false
otherwisevoid handleReturnValue(MessageContext messageContext, MethodParameter returnType, Object returnValue) throws Exception
messageContext
- the current message contextreturnType
- the return type to handle. This type must have previously been passed to the supportsReturnType(MethodParameter)
method of this interface, which must have returned
true
.returnValue
- the return value to handleException
- in case of errors