Skip to content

Commit e6127b1

Browse files
Put FDK for Java in Java tutorials
1 parent 250576d commit e6127b1

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

JavaFDKIntroduction/README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Introduction to Fn with Java
22

33
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).
55
If you haven't completed the [Introduction to Fn](../Introduction/README.md)
66
tutorial you should head over there before you proceed.
77

@@ -106,7 +106,7 @@ declares a number of properties including:
106106
class and the method that should be invoked when your `javafn` function is
107107
called.
108108
109-
The Java function init 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 function needs.
109+
The Java function init also generates a Maven `pom.xml` file to build and test your function. The pom includes the Fn FDK for Java runtime and test libraries your function needs.
110110
111111
112112
## Deploy your Java Function
@@ -460,7 +460,7 @@ editor.
460460

461461
Below is the generated `com.example.fn.HelloFunction` class. As you can
462462
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
464464
input parameters to streams, primitive types, byte arrays and Java POJOs
465465
unmarshalled from JSON. Functions can also be static or instance
466466
methods.
@@ -482,15 +482,15 @@ public class HelloFunction {
482482
This function returns the string "Hello, world!" unless an input string
483483
is provided in which case it returns "Hello, <input string>!". We saw
484484
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
486486
content into the string passed to the function. This greatly simplifies
487487
the function code.
488488

489489
## Testing with JUnit
490490

491491
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.
494494

495495
The generated test confirms that when no input is provided the function returns "Hello, world!".
496496

@@ -578,7 +578,7 @@ public class HelloFunction {
578578

579579
We've created a couple of simple Pojos to bind the JSON input and output
580580
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
582582
to the function. JSON support is built-in but input and output binding
583583
is extensible and you could plug in marshallers for other
584584
data formats like `protobuf`, `avro` or `xml`.

NativeJavaFunction/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,6 @@ standard input and returned "Hello, Joe!".
214214
Congratulations! You've just completed this tutorial and created your first Native Java Function.
215215
The resulting Docker image is very small because it contains only the native executable instead of the whole JVM.
216216
It also has improved cold startup times and reduced memory footprint compared to standard Java functions.
217-
You can look at [Java FDK](../JavaFDKIntroduction/README.md) for more detailed usage of Java functions inside Fn.
217+
You can look at [FDK for Java](../JavaFDKIntroduction/README.md) for more detailed usage of Java functions inside Fn.
218218
219219
**Go:** [Back to Contents](../README.md)

0 commit comments

Comments
 (0)