Add FunctionFactoryMetadata interface for type discovery
The compiled functions implement that interface which means you can inspect the signature of the method that created them and discover its generic types.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
while getopts ":n:f:" opt; do
|
||||
while getopts ":n:f:t:" opt; do
|
||||
case $opt in
|
||||
n)
|
||||
NAME=$OPTARG
|
||||
@@ -8,7 +8,10 @@ while getopts ":n:f:" opt; do
|
||||
f)
|
||||
FUNC=$OPTARG
|
||||
;;
|
||||
t)
|
||||
TYPE=$OPTARG
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
curl -X POST -H "Content-Type: text/plain" -d $FUNC localhost:8080/consumer/$NAME
|
||||
curl -X POST -H "Content-Type: text/plain" -d $FUNC localhost:8080/consumer/$NAME?type=$TYPE
|
||||
|
||||
Reference in New Issue
Block a user