Endpoints now expose a setter for a Poller strategy and no longer implement Lifecycle.

This commit is contained in:
Mark Fisher
2008-07-14 18:29:07 +00:00
parent 9bcd9e12c8
commit ca7dc3922e
19 changed files with 169 additions and 329 deletions

View File

@@ -43,7 +43,7 @@ public class ByteStreamSourceTests {
MessageChannel channel = new QueueChannel();
ByteStreamSource source = new ByteStreamSource(stream);
SourceEndpoint endpoint = new SourceEndpoint(source);
endpoint.setOutputChannel(channel);
endpoint.setTarget(channel);
endpoint.afterPropertiesSet();
endpoint.send(new GenericMessage<EndpointPoller>(new EndpointPoller()));
Message<?> message1 = channel.receive(500);
@@ -69,7 +69,7 @@ public class ByteStreamSourceTests {
PollingSchedule schedule = new PollingSchedule(1000);
schedule.setInitialDelay(10000);
SourceEndpoint endpoint = new SourceEndpoint(source);
endpoint.setOutputChannel(channel);
endpoint.setTarget(channel);
endpoint.afterPropertiesSet();
endpoint.send(new GenericMessage<EndpointPoller>(new EndpointPoller()));
Message<?> message1 = channel.receive(0);
@@ -92,7 +92,7 @@ public class ByteStreamSourceTests {
PollingSchedule schedule = new PollingSchedule(1000);
schedule.setInitialDelay(10000);
SourceEndpoint endpoint = new SourceEndpoint(source);
endpoint.setOutputChannel(channel);
endpoint.setTarget(channel);
endpoint.afterPropertiesSet();
endpoint.send(new GenericMessage<EndpointPoller>(new EndpointPoller()));
Message<?> message1 = channel.receive(0);

View File

@@ -44,7 +44,7 @@ public class CharacterStreamSourceTests {
PollingSchedule schedule = new PollingSchedule(1000);
schedule.setInitialDelay(10000);
SourceEndpoint endpoint = new SourceEndpoint(source);
endpoint.setOutputChannel(channel);
endpoint.setTarget(channel);
endpoint.afterPropertiesSet();
endpoint.send(new GenericMessage<EndpointPoller>(new EndpointPoller()));
Message<?> message1 = channel.receive(0);