Deprecate IntFlows.from(service, methodName)
The method reference together with a `IntegrationFlows.frm(Supplier<?>)` do the trick to avoid a method name resolution and also gives us a code navigation in the IDE
This commit is contained in:
committed by
Gary Russell
parent
07b44aec18
commit
2a8615539f
@@ -24,7 +24,6 @@ import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
import java.util.concurrent.atomic.AtomicReference;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
@@ -175,7 +174,7 @@ public class FlowServiceTests {
|
||||
|
||||
@Override
|
||||
protected IntegrationFlowDefinition<?> buildFlow() {
|
||||
return from(this, "messageSource", e -> e.poller(p -> p.trigger(this::nextExecutionTime)))
|
||||
return from(this::messageSource, e -> e.poller(p -> p.trigger(this::nextExecutionTime)))
|
||||
.split(this, null, e -> e.applySequence(false))
|
||||
.transform(this)
|
||||
.aggregate(a -> a.processor(this, null))
|
||||
@@ -213,7 +212,7 @@ public class FlowServiceTests {
|
||||
|
||||
@Aggregator
|
||||
public String aggregate(List<String> payloads) {
|
||||
return payloads.stream().collect(Collectors.joining());
|
||||
return String.join("", payloads);
|
||||
}
|
||||
|
||||
@Filter
|
||||
|
||||
Reference in New Issue
Block a user