INT-945 multiple @Payload annotations are now supported as long as no more than one of them provides no EL expression for qualified properties of the payload instance
This commit is contained in:
@@ -340,7 +340,9 @@ public class MethodInvokingMessageProcessor implements MessageProcessor {
|
||||
if (StringUtils.hasText(qualifierExpression)) {
|
||||
sb.append("." + qualifierExpression);
|
||||
}
|
||||
this.setExclusiveTargetParameterType(parameterType);
|
||||
if (!StringUtils.hasText(qualifierExpression)) {
|
||||
this.setExclusiveTargetParameterType(parameterType);
|
||||
}
|
||||
}
|
||||
else if (annotationType.equals(Headers.class)) {
|
||||
Assert.isTrue(Map.class.isAssignableFrom(parameterType),
|
||||
|
||||
Reference in New Issue
Block a user