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

@@ -50,6 +50,11 @@ public class TcpSyslogReceivingChannelAdapter extends SyslogReceivingChannelAdap
this.applicationEventPublisher = applicationEventPublisher;
}
@Override
public String getComponentType() {
return "syslog:inbound-channel-adapter(tcp)";
}
@Override
protected void onInit() {
super.onInit();

View File

@@ -15,11 +15,11 @@
*/
package org.springframework.integration.syslog.inbound;
import org.springframework.messaging.Message;
import org.springframework.messaging.MessagingException;
import org.springframework.integration.channel.DirectChannel;
import org.springframework.messaging.MessageHandler;
import org.springframework.integration.ip.udp.UnicastReceivingChannelAdapter;
import org.springframework.messaging.Message;
import org.springframework.messaging.MessageHandler;
import org.springframework.messaging.MessagingException;
/**
* UDP implementation of a syslog inbound channel adapter.
@@ -36,6 +36,11 @@ public class UdpSyslogReceivingChannelAdapter extends SyslogReceivingChannelAdap
this.udpAdapter = udpAdpter;
}
@Override
public String getComponentType() {
return "syslog:inbound-channel-adapter(udp)";
}
@Override
protected void onInit() {
if (this.udpAdapter == null) {