Skip to content

Commit 10f2c1d

Browse files
committed
Acroloinx
1 parent 9c4601e commit 10f2c1d

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

articles/azure-functions/functions-reference-java.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ ms.custom: devx-track-java, devx-track-azurecli, ignite-2022
1111

1212
This guide contains detailed information to help you succeed developing Azure Functions using Java.
1313

14-
As a Java developer, if you're new to Azure Functions, please consider first reading one of the following articles:
14+
As a Java developer, if you're new to Azure Functions, consider first reading one of the following articles:
1515

1616
| Getting started | Concepts| Scenarios/samples |
1717
| -- | -- | -- |
18-
| <ul><li>[Java function using Visual Studio Code](./create-first-function-vs-code-java.md)</li><li>[Java/Maven function with terminal/command prompt](./create-first-function-cli-java.md)</li><li>[Java function using Gradle](functions-create-first-java-gradle.md)</li><li>[Java function using Eclipse](functions-create-maven-eclipse.md)</li><li>[Java function using IntelliJ IDEA](functions-create-maven-intellij.md)</li></ul> | <ul><li>[Developer guide](functions-reference.md)</li><li>[Hosting options](functions-scale.md)</li><li>[Performance&nbsp; considerations](functions-best-practices.md)</li></ul> | <ul><li>[Java samples with different triggers](/samples/azure-samples/azure-functions-samples-java/azure-functions-java/)</li><li>[Event Hub trigger and Azure Cosmos DB output binding](/samples/azure-samples/java-functions-eventhub-cosmosdb/sample/)</li></ul> |
18+
| <ul><li>[Java function using Visual Studio Code](./create-first-function-vs-code-java.md)</li><li>[Java/Maven function with terminal/command prompt](./create-first-function-cli-java.md)</li><li>[Java function using Gradle](functions-create-first-java-gradle.md)</li><li>[Java function using Eclipse](functions-create-maven-eclipse.md)</li><li>[Java function using IntelliJ IDEA](functions-create-maven-intellij.md)</li></ul> | <ul><li>[Developer guide](functions-reference.md)</li><li>[Hosting options](functions-scale.md)</li><li>[Performance&nbsp; considerations](functions-best-practices.md)</li></ul> | <ul><li>[Java samples with different triggers](/samples/azure-samples/azure-functions-samples-java/azure-functions-java/)</li><li>[Event Hubs trigger and Azure Cosmos DB output binding](/samples/azure-samples/java-functions-eventhub-cosmosdb/sample/)</li></ul> |
1919

2020
## Java function basics
2121

22-
A Java function is a `public` method, decorated with the annotation `@FunctionName`. This method defines the entry for a Java function, and must be unique in a particular package. The package can have multiple classes with multiple public methods annotated with `@FunctionName`. A single package is deployed to a function app in Azure. When running in Azure, the function app provides the deployment, execution, and management context for your individual Java functions.
22+
A Java function is a `public` method, decorated with the annotation `@FunctionName`. This method defines the entry for a Java function, and must be unique in a particular package. The package can have multiple classes with multiple public methods annotated with `@FunctionName`. A single package is deployed to a function app in Azure. In Azure, the function app provides the deployment, execution, and management context for your individual Java functions.
2323

2424
## Programming model
2525

@@ -37,9 +37,9 @@ The following developer environments have Azure Functions tooling that lets you
3737
+ [Eclipse](functions-create-maven-eclipse.md)
3838
+ [IntelliJ](functions-create-maven-intellij.md)
3939

40-
The article links above show you how to create your first functions using your IDE of choice.
40+
These articles show you how to create your first functions using your IDE of choice.
4141

42-
### Project Scaffolding
42+
### Project scaffolding
4343

4444
If you prefer command line development from the Terminal, the simplest way to scaffold Java-based function projects is to use `Apache Maven` archetypes. The Java Maven archetype for Azure Functions is published under the following _groupId_:_artifactId_: [com.microsoft.azure:azure-functions-archetype](https://search.maven.org/artifact/com.microsoft.azure/azure-functions-archetype/).
4545

@@ -67,7 +67,7 @@ To get started using this archetype, see the [Java quickstart](./create-first-fu
6767

6868
## Folder structure
6969

70-
Here is the folder structure of an Azure Functions Java project:
70+
Here's the folder structure of an Azure Functions Java project:
7171

7272
```
7373
FunctionsProject
@@ -116,7 +116,7 @@ public class Function {
116116
}
117117
```
118118

119-
Here is the generated corresponding `function.json` by the [azure-functions-maven-plugin](https://mvnrepository.com/artifact/com.microsoft.azure/azure-functions-maven-plugin):
119+
Here's the generated corresponding `function.json` by the [azure-functions-maven-plugin](https://mvnrepository.com/artifact/com.microsoft.azure/azure-functions-maven-plugin):
120120

121121
```json
122122
{
@@ -142,7 +142,7 @@ Here is the generated corresponding `function.json` by the [azure-functions-mave
142142

143143
## Java versions
144144

145-
The version of Java used when creating the function app on which functions runs in Azure is specified in the pom.xml file. The Maven archetype currently generates a pom.xml for Java 8, which you can change before publishing. The Java version in pom.xml should match the version on which you have locally developed and tested your app.
145+
The version of Java on which your app runs in Azure is specified in the pom.xml file. The Maven archetype currently generates a pom.xml for Java 8, which you can change before publishing. The Java version in pom.xml should match the version on which you've locally developed and tested your app.
146146

147147
### Supported versions
148148

@@ -192,11 +192,11 @@ The following example shows the operating system setting in the `runtime` sectio
192192

193193
## JDK runtime availability and support
194194

195-
Microsoft and [Adoptium](https://adoptium.net/) builds of OpenJDK are provided and supported on Functions for Java 8 (Adoptium), 11 (MSFT) and 17(MSFT). These binaries are provided as a no-cost, multi-platform, production-ready distribution of the OpenJDK for Azure. They contain all the components for building and runnning Java SE applications.
195+
Microsoft and [Adoptium](https://adoptium.net/) builds of OpenJDK are provided and supported on Functions for Java 8 (Adoptium), 11 (MSFT) and 17(MSFT). These binaries are provided as a no-cost, multi-platform, production-ready distribution of the OpenJDK for Azure. They contain all the components for building and running Java SE applications.
196196

197197
For local development or testing, you can download the [Microsoft build of OpenJDK](/java/openjdk/download) or [Adoptium Temurin](https://adoptium.net/?variant=openjdk8&jvmVariant=hotspot) binaries for free. [Azure support](https://azure.microsoft.com/support/) for issues with the JDKs and function apps is available with a [qualified support plan](https://azure.microsoft.com/support/plans/).
198198

199-
If you would like to continue using the Zulu for Azure binaries on your Function app, please [configure your app accordingly](https://github.com/Azure/azure-functions-java-worker/wiki/Customize-JVM-to-use-Zulu). You can continue to use the Azul binaries for your site, but any security patches or improvements will only be available in new versions of the OpenJDK, so we recommend that you eventually remove this configuration so that your Function apps use the latest available version of Java.
199+
If you would like to continue using the Zulu for Azure binaries on your Function app, [configure your app accordingly](https://github.com/Azure/azure-functions-java-worker/wiki/Customize-JVM-to-use-Zulu). You can continue to use the Azul binaries for your site. However, any security patches or improvements are only available in new versions of the OpenJDK. Because of this, you should eventually remove this configuration so that your apps use the latest available version of Java.
200200

201201
## Customize JVM
202202

@@ -208,7 +208,7 @@ Functions lets you customize the Java virtual machine (JVM) used to run your Jav
208208
* `-Djava.net.preferIPv4Stack=true`
209209
* `-jar`
210210

211-
You can provide additional arguments to the JVM by using one of the following application settings, depending on the plan type:
211+
You can provide other arguments to the JVM by using one of the following application settings, depending on the plan type:
212212

213213
| Plan type | Setting name | Comment |
214214
| --- | --- |
@@ -354,7 +354,7 @@ To receive a batch of inputs, you can bind to `String[]`, `POJO[]`, `List<String
354354

355355
```
356356

357-
This function gets triggered whenever there is new data in the configured event hub. Because the `cardinality` is set to `MANY`, the function receives a batch of messages from the event hub. `EventData` from event hub gets converted to `TestEventData` for the function execution.
357+
This function gets triggered whenever there's new data in the configured event hub. Because the `cardinality` is set to `MANY`, the function receives a batch of messages from the event hub. `EventData` from event hub gets converted to `TestEventData` for the function execution.
358358

359359
### Output binding example
360360

@@ -415,7 +415,7 @@ You invoke this function on an `HttpRequest` object. It writes multiple values t
415415

416416
## HttpRequestMessage and HttpResponseMessage
417417

418-
These are defined in `azure-functions-java-library`. They are helper types to work with HttpTrigger functions.
418+
These are defined in `azure-functions-java-library`. They're helper types to work with HttpTrigger functions.
419419

420420
| Specialized type | Target | Typical usage |
421421
| --------------------- | :-----------------: | ------------------------------ |
@@ -490,7 +490,7 @@ public class Function {
490490

491491
## View logs and trace
492492

493-
You can use the Azure CLI to stream Java stdout and stderr logging, as well as other application logging.
493+
You can use the Azure CLI to stream Java stdout and stderr logging, and other application logging.
494494

495495
Here's how to configure your function app to write application logging by using the Azure CLI:
496496

0 commit comments

Comments
 (0)