GH-461 Add to register more than one functional class

Similar to the way we allow multiple functions to be listed with 'definition' property, this enhancement allows several functional classes to be deployed

Resolves #461
This commit is contained in:
Oleg Zhurakousky
2020-03-23 14:51:56 +01:00
parent 85000ee084
commit 9434a68bd2
5 changed files with 51 additions and 11 deletions

View File

@@ -0,0 +1,13 @@
package function.example;
import java.util.function.Function;
public class ReverseFunction implements Function<String, String> {
@Override
public String apply(String value) {
System.out.println("Reversing " + value);
return new StringBuilder(value).reverse().toString();
}
}