INT-2738 Add Missing getComponentType() Methods

JIRA: https://jira.spring.io/browse/INT-2738

Add a `getComponentType()` method for all handlers,
message producers, and message sources that implement
`NamedComponent` (see `SPCA.getComponentType()`).

Add rome as an optional dependency - STS complained
because AtomFeedHttpMessageConverter has a dependency
on it.
This commit is contained in:
Gary Russell
2014-04-12 16:20:59 -04:00
committed by Artem Bilan
parent 3839eca5ca
commit a7489909d7
54 changed files with 384 additions and 146 deletions

View File

@@ -342,6 +342,11 @@ public class HttpRequestExecutingMessageHandler extends AbstractReplyProducingMe
this.transferCookies = transferCookies;
}
@Override
public String getComponentType() {
return (this.expectReply ? "http:outbound-gateway" : "http:outbound-channel-adapter");
}
@Override
protected void doInit() {
this.evaluationContext = ExpressionUtils.createStandardEvaluationContext(this.getBeanFactory());