You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: JavaFDKIntroduction/README.md
+7-7
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
# Introduction to Fn with Java
2
2
3
3
This tutorial introduces the
4
-
[Fn Java FDK (Function Development Kit)](https://github.com/fnproject/fdk-java).
4
+
[Fn Function Development Kit for Java (FDK for Java)](https://github.com/fnproject/fdk-java).
5
5
If you haven't completed the [Introduction to Fn](../Introduction/README.md)
6
6
tutorial you should head over there before you proceed.
7
7
@@ -106,7 +106,7 @@ declares a number of properties including:
106
106
class and the method that should be invoked when your `javafn`functionis
107
107
called.
108
108
109
-
The Java functioninit also generates a Maven `pom.xml` file to build and test your function. The pom includes the Fn Java FDK runtime and test libraries your functionneeds.
109
+
The Java functioninit also generates a Maven `pom.xml` file to build and test your function. The pom includes the Fn FDKfor Java runtime and test libraries your functionneeds.
110
110
111
111
112
112
## Deploy your Java Function
@@ -460,7 +460,7 @@ editor.
460
460
461
461
Below is the generated `com.example.fn.HelloFunction` class. As you can
462
462
see the function is just a method on a POJO that takes a string value
463
-
and returns another string value, but the Java FDK also supports binding
463
+
and returns another string value, but the FDK for Java also supports binding
464
464
input parameters to streams, primitive types, byte arrays and Java POJOs
465
465
unmarshalled from JSON. Functions can also be static or instance
466
466
methods.
@@ -482,15 +482,15 @@ public class HelloFunction {
482
482
This function returns the string "Hello, world!" unless an input string
483
483
is provided in which case it returns "Hello, <input string>!". We saw
484
484
this previously when we piped "Bob" into the function. Notice that
485
-
the Java FDK reads from standard input and automatically puts the
485
+
the FDK for Java reads from standard input and automatically puts the
486
486
content into the string passed to the function. This greatly simplifies
487
487
the function code.
488
488
489
489
## Testing with JUnit
490
490
491
491
The `fn init` command also generated a JUnit test for the function which uses
492
-
the Java FDK's function test framework. With this framework you can setup test
493
-
fixtures with various function input values and verify the results.
492
+
the FDK for Java's function test framework. With this framework you can setup
493
+
test fixtures with various function input values and verify the results.
494
494
495
495
The generated test confirms that when no input is provided the function returns "Hello, world!".
496
496
@@ -578,7 +578,7 @@ public class HelloFunction {
578
578
579
579
We've created a couple of simple Pojos to bind the JSON input and output
580
580
to and changed the function signature to use these Pojos. The
581
-
Java FDK will automatically bind input data based on the Java arguments
581
+
FDK for Java will automatically bind input data based on the Java arguments
582
582
to the function. JSON support is built-in but input and output binding
583
583
is extensible and you could plug in marshallers for other
0 commit comments