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: articles/azure-functions/functions-reference-java.md
+8-6Lines changed: 8 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ ms.author: routlaw
21
21
22
22
The concepts of [triggers and bindings](functions-triggers-bindings.md) are fundamental to Azure Functions. Triggers start the execution of your code. Bindings give you a way to pass data to and return data from a function, without having to write custom data access code.
23
23
24
-
A function should be a stateless method to process input and produce output. Your function cannot depend on any instance fields of the class. All the function methods should be `public` and method with annotation @FunctionName must be unique as method name defines the entry for a function.
24
+
A function should be a stateless method to process input and produce output. Your function should not depend on any instance fields of the class. All the function methods should be `public` and method with annotation @FunctionName must be unique as method name defines the entry for a function.
25
25
26
26
## Folder structure
27
27
@@ -57,7 +57,7 @@ You can put more than one function in a project. Avoid putting your functions in
57
57
58
58
Azure functions are invoked by a trigger, such as an HTTP request, a timer, or an update to data. Your function needs to process that trigger and any other inputs to produce one or more outputs.
59
59
60
-
Use the Java annotations included in the [com.microsoft.azure.functions.annotation.*](/java/api/com.microsoft.azure.functions.annotation) package to bind input and outputs to your methods. See [Java reference docs](/java/api/com.microsoft.azure.functions.annotation) for more details.
60
+
Use the Java annotations included in the [com.microsoft.azure.functions.annotation.*](/java/api/com.microsoft.azure.functions.annotation) package to bind input and outputs to your methods. For more information see [Java reference docs](/java/api/com.microsoft.azure.functions.annotation).
61
61
62
62
> [!IMPORTANT]
63
63
> You must configure an Azure Storage account in your [local.settings.json](/azure/azure-functions/functions-run-local#local-settings-file) to run Azure Storage Blob, Queue, or Table triggers locally.
@@ -114,7 +114,7 @@ You can use Plain old Java objects (POJOs), types defined in `azure-functions-ja
114
114
115
115
### Plain old Java objects (POJOs)
116
116
117
-
For converting input data to POJO, [azure-functions-java-worker](https://github.com/Azure/azure-functions-java-worker) uses [gson](https://github.com/google/gson) library. POJO types used as inputs to functions must the same `public` access modifier as the function methods they are being used in.
117
+
For converting input data to POJO, [azure-functions-java-worker](https://github.com/Azure/azure-functions-java-worker) uses [gson](https://github.com/google/gson) library. POJO types used as inputs to functions should be `public`.
118
118
119
119
### Binary data
120
120
@@ -174,9 +174,11 @@ public class Function {
174
174
}
175
175
```
176
176
177
-
This function is invoked with an HTTP request. HTTP request payload is passed as a `String` for the argument `inputReq`; and one entry is retrieved from the Azure Table Storage and is passed as `TestInputData` to the argument `inputData`.
177
+
This function is invoked with an HTTP request.
178
+
- HTTP request payload is passed as a `String` for the argument `inputReq`
179
+
- One entry is retrieved from the Azure Table Storage and is passed as `TestInputData` to the argument `inputData`.
178
180
179
-
To receive a batch of inputsbind to `String[]`, `POJO[]`, `List<String>` or `List<POJO>`
181
+
To receive a batch of inputs, you can bind to `String[]`, `POJO[]`, `List<String>` or `List<POJO>`.
180
182
181
183
```java
182
184
@FunctionName("ProcessIotMessages")
@@ -329,7 +331,7 @@ public class Function {
329
331
330
332
## View logs and trace
331
333
332
-
You can use the Azure CLI to stream Java standard out and error logging as well as other application logging.
334
+
You can use the Azure CLI to stream Java stdout and stderr logging as well as other application logging.
333
335
334
336
Configure your Function application to write application logging using the Azure CLI:
0 commit comments