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:
committed by
Artem Bilan
parent
3839eca5ca
commit
a7489909d7
@@ -140,6 +140,11 @@ public class RedisStoreMessageSource extends IntegrationObjectSupport
|
||||
return fb.getObject();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getComponentType() {
|
||||
return "redis:store-inbound-channel-adapter";
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onInit() throws Exception {
|
||||
this.evaluationContext =
|
||||
|
||||
@@ -87,6 +87,11 @@ public class RedisOutboundGateway extends AbstractReplyProducingMessageHandler
|
||||
this.argumentsStrategy = argumentsStrategy;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getComponentType() {
|
||||
return "redis:outbound-gateway";
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Object handleRequestMessage(Message<?> requestMessage) {
|
||||
final String command = this.commandExpression.getValue(this.evaluationContext, requestMessage, String.class);
|
||||
|
||||
@@ -92,6 +92,11 @@ public class RedisPublishingMessageHandler extends AbstractMessageHandler implem
|
||||
this.topicExpression = topicExpression;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getComponentType() {
|
||||
return "redis:outbound-channel-adapter";
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onInit() throws Exception {
|
||||
Assert.notNull(topicExpression, "'topicExpression' must not be null.");
|
||||
|
||||
@@ -84,7 +84,7 @@ public class RedisQueueOutboundChannelAdapter extends AbstractMessageHandler imp
|
||||
|
||||
@Override
|
||||
public String getComponentType() {
|
||||
return "redis:outbound-channel-adapter";
|
||||
return "redis:queue-outbound-channel-adapter";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user