This package contains libraries to author Azure Functions in Java.
Use this package by including the following snippet in your pom.xml
.
<dependency>
<groupId>com.microsoft.azure.serverless</groupId>
<artifactId>azure-function-java-core</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
Instead of writing function.json
, you can use annotations in code to specify triggers and bindings of your functions.
function.json
can be automatically generated by Maven Plugin for Azure Functions.
The following table lists the Java annotations for each binding type.
Binding | Annotation |
---|---|
CosmosDB | N/A |
Event Hubs |
|
HTTP |
|
Mobile Apps | N/A |
Notification Hubs | N/A |
Service Bus |
|
Storage Blob |
|
Storage Queue |
|
Storage Table |
|
Timer |
|
Twilio | N/A |