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
@@ -93,6 +93,11 @@ public class NotificationPublishingMessageHandler extends AbstractMessageHandler
|
||||
this.defaultNotificationType = defaultNotificationType;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getComponentType() {
|
||||
return "jmx:notification-publishing-channel-adapter";
|
||||
}
|
||||
|
||||
@Override
|
||||
public final void onInit() throws Exception {
|
||||
Assert.isTrue(this.getBeanFactory() instanceof ListableBeanFactory, "A ListableBeanFactory is required.");
|
||||
|
||||
@@ -106,6 +106,11 @@ public class OperationInvokingMessageHandler extends AbstractReplyProducingMessa
|
||||
this.operationName = operationName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getComponentType() {
|
||||
return "jmx:operation-invoking-channel-adapter";
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void doInit() {
|
||||
Assert.notNull(this.server, "MBeanServer is required.");
|
||||
|
||||
Reference in New Issue
Block a user