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:
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user