diff --git a/aws-intro.html b/aws-intro.html index 4238e4f37..91086e7d7 100644 --- a/aws-intro.html +++ b/aws-intro.html @@ -90,6 +90,11 @@ $(addBlockSwitches); @@ -163,6 +168,31 @@ The AWS sample app is written in the "functional" style (as an Application +
+

Type Conversion

+
+
+

Spring Cloud Function will attempt to transparently handle type conversion between the raw +input stream and types declared by your function.

+
+
+

For example, if your function signature is as such Function<Foo, Bar> we will attempt to convert +incoming stream event to an instance of Foo.

+
+
+

In the event type is not known or can not be determined (e.g., Function<?, ?>) we will attempt to +convert an incoming stream event to a generic Map.

+
+
+

Raw Input

+
+

There are times when you may want to have access to a raw input. In this case all you need is to declare your +function signature to accept InputStream. For example, Function<InputStream, ?>. In this case +we will not attempt any conversion and will pass the raw input directly to a function.

+
+
+
+
diff --git a/aws-readme.html b/aws-readme.html index 929fd46e9..967d27ce7 100644 --- a/aws-readme.html +++ b/aws-readme.html @@ -90,6 +90,11 @@ $(addBlockSwitches); @@ -166,6 +171,31 @@ The AWS sample app is written in the "functional" style (as an Application +
+

Type Conversion

+
+
+

Spring Cloud Function will attempt to transparently handle type conversion between the raw +input stream and types declared by your function.

+
+
+

For example, if your function signature is as such Function<Foo, Bar> we will attempt to convert +incoming stream event to an instance of Foo.

+
+
+

In the event type is not known or can not be determined (e.g., Function<?, ?>) we will attempt to +convert an incoming stream event to a generic Map.

+
+
+

Raw Input

+
+

There are times when you may want to have access to a raw input. In this case all you need is to declare your +function signature to accept InputStream. For example, Function<InputStream, ?>. In this case +we will not attempt any conversion and will pass the raw input directly to a function.

+
+
+
+
diff --git a/aws.html b/aws.html index ec84f1f3d..2d7f8e993 100644 --- a/aws.html +++ b/aws.html @@ -91,6 +91,11 @@ $(addBlockSwitches);
  • Introduction
  • Notes on JAR Layout
  • Upload
  • +
  • Type Conversion + +
  • Functional Bean Definitions
  • Platfom Specific Features