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
@@ -165,6 +165,11 @@ public class MongoDbMessageSource extends IntegrationObjectSupport
|
||||
this.mongoConverter = mongoConverter;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getComponentType() {
|
||||
return "mongo:inbound-channel-adapter";
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onInit() throws Exception {
|
||||
this.evaluationContext =
|
||||
|
||||
@@ -97,6 +97,11 @@ public class MongoDbStoringMessageHandler extends AbstractMessageHandler {
|
||||
this.collectionNameExpression = collectionNameExpression;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getComponentType() {
|
||||
return "mongo:outbound-channel-adapter";
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onInit() throws Exception {
|
||||
this.evaluationContext =
|
||||
|
||||
Reference in New Issue
Block a user