GH-654 Remove FunctionProperties injection from MessageRoutingCallbackRSocketTests
This commit is contained in:
@@ -37,8 +37,7 @@ public interface MessageRoutingCallback {
|
||||
* Determines the name of the function definition to route incoming {@link Message}.
|
||||
*
|
||||
* @param message instance of incoming {@link Message}
|
||||
* @param functionProperties instance of {@link FunctionProperties}
|
||||
* @return the name of the route-to function definition
|
||||
*/
|
||||
String functionDefinition(Message<?> message, FunctionProperties functionProperties);
|
||||
String functionDefinition(Message<?> message);
|
||||
}
|
||||
|
||||
@@ -174,7 +174,7 @@ public class RoutingFunction implements Function<Object, Object> {
|
||||
|
||||
private FunctionInvocationWrapper functionFromCallback(Object input) {
|
||||
if (input instanceof Message) {
|
||||
String functionDefinition = this.routingCallback.functionDefinition((Message<?>) input, this.functionProperties);
|
||||
String functionDefinition = this.routingCallback.functionDefinition((Message<?>) input);
|
||||
if (StringUtils.hasText(functionDefinition)) {
|
||||
return this.functionFromDefinition(functionDefinition);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user