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:
Mark Fisher
2009-12-24 13:16:06 +00:00
parent c313efda0a
commit b4bbf27432
2 changed files with 21 additions and 1 deletions

View File

@@ -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),