committed by
Oleg Zhurakousky
parent
b89952c2cb
commit
47f3964435
@@ -160,18 +160,16 @@ public class RoutingFunction implements Function<Object, Object> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (input instanceof Publisher) {
|
else if (input instanceof Publisher) {
|
||||||
if (function == null) {
|
if (StringUtils.hasText(functionProperties.getDefinition())) {
|
||||||
if (StringUtils.hasText(functionProperties.getDefinition())) {
|
function = functionFromDefinition(functionProperties.getDefinition());
|
||||||
function = functionFromDefinition(functionProperties.getDefinition());
|
}
|
||||||
}
|
else if (StringUtils.hasText(functionProperties.getRoutingExpression())) {
|
||||||
else if (StringUtils.hasText(functionProperties.getRoutingExpression())) {
|
function = this.functionFromExpression(functionProperties.getRoutingExpression(), input);
|
||||||
function = this.functionFromExpression(functionProperties.getRoutingExpression(), input);
|
}
|
||||||
}
|
else {
|
||||||
else {
|
return input instanceof Mono
|
||||||
return input instanceof Mono
|
|
||||||
? Mono.from((Publisher<?>) input).map(v -> route(v, originalInputIsPublisher))
|
? Mono.from((Publisher<?>) input).map(v -> route(v, originalInputIsPublisher))
|
||||||
: Flux.from((Publisher<?>) input).map(v -> route(v, originalInputIsPublisher));
|
: Flux.from((Publisher<?>) input).map(v -> route(v, originalInputIsPublisher));
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user