Class AzureFunctionsProcessor
java.lang.Object
io.quarkus.azure.functions.deployment.AzureFunctionsProcessor
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) AzureFunctionsAppNameBuildItemappName(io.quarkus.deployment.pkg.builditem.OutputTargetBuildItem output, AzureFunctionsConfig functionsConfig) protected voidcopyHostJson(Path rootPath, Path functionStagingDir) protected voidcopyJarsToStageDirectory(io.quarkus.deployment.pkg.builditem.JarBuildItem jar, Path functionStagingDir) protected voidcopyLocalSettingsJson(Path rootPath, Path functionStagingDir) (package private) io.quarkus.deployment.builditem.FeatureBuildItemfeature()voidfindFunctions(io.quarkus.deployment.builditem.CombinedIndexBuildItem combined, io.quarkus.deployment.annotations.BuildProducer<AzureFunctionBuildItem> functions) protected com.fasterxml.jackson.databind.ObjectWriterstatic booleanio.quarkus.deployment.pkg.builditem.ArtifactResultBuildItempackageFunctions(List<AzureFunctionBuildItem> functions, io.quarkus.deployment.pkg.builditem.OutputTargetBuildItem target, AzureFunctionsConfig functionsConfig, io.quarkus.deployment.pkg.PackageConfig packageConfig, AzureFunctionsAppNameBuildItem appName, io.quarkus.deployment.pkg.builditem.JarBuildItem jar) voidregisterArc(io.quarkus.deployment.annotations.BuildProducer<io.quarkus.arc.deployment.UnremovableBeanBuildItem> unremovableBeans, io.quarkus.deployment.annotations.BuildProducer<io.quarkus.arc.deployment.AdditionalBeanBuildItem> additionalBeans, List<AzureFunctionBuildItem> functions) protected voidwriteFunctionJsonFile(com.fasterxml.jackson.databind.ObjectWriter objectWriter, String functionName, com.microsoft.azure.toolkit.lib.legacy.function.configurations.FunctionConfiguration config, String functionStagingDir) protected voidwriteFunctionJsonFiles(com.fasterxml.jackson.databind.ObjectWriter objectWriter, Map<String, com.microsoft.azure.toolkit.lib.legacy.function.configurations.FunctionConfiguration> configMap, Path functionStagingDir) protected voidwriteObjectToFile(com.fasterxml.jackson.databind.ObjectWriter objectWriter, Object object, File targetFile)
-
Field Details
-
HOST_JSON
- See Also:
-
LOCAL_SETTINGS_JSON
- See Also:
-
FUNCTION_JSON
- See Also:
-
AZURE_FUNCTIONS_JAVA_LIBRARY
- See Also:
-
-
Constructor Details
-
AzureFunctionsProcessor
public AzureFunctionsProcessor()
-
-
Method Details
-
feature
io.quarkus.deployment.builditem.FeatureBuildItem feature() -
appName
AzureFunctionsAppNameBuildItem appName(io.quarkus.deployment.pkg.builditem.OutputTargetBuildItem output, AzureFunctionsConfig functionsConfig) -
packageFunctions
public io.quarkus.deployment.pkg.builditem.ArtifactResultBuildItem packageFunctions(List<AzureFunctionBuildItem> functions, io.quarkus.deployment.pkg.builditem.OutputTargetBuildItem target, AzureFunctionsConfig functionsConfig, io.quarkus.deployment.pkg.PackageConfig packageConfig, AzureFunctionsAppNameBuildItem appName, io.quarkus.deployment.pkg.builditem.JarBuildItem jar) throws Exception - Throws:
Exception
-
writeFunctionJsonFiles
protected void writeFunctionJsonFiles(com.fasterxml.jackson.databind.ObjectWriter objectWriter, Map<String, com.microsoft.azure.toolkit.lib.legacy.function.configurations.FunctionConfiguration> configMap, Path functionStagingDir) throws IOException- Throws:
IOException
-
writeFunctionJsonFile
protected void writeFunctionJsonFile(com.fasterxml.jackson.databind.ObjectWriter objectWriter, String functionName, com.microsoft.azure.toolkit.lib.legacy.function.configurations.FunctionConfiguration config, String functionStagingDir) throws IOException - Throws:
IOException
-
copyHostJson
- Throws:
IOException
-
copyLocalSettingsJson
- Throws:
IOException
-
copyJarsToStageDirectory
protected void copyJarsToStageDirectory(io.quarkus.deployment.pkg.builditem.JarBuildItem jar, Path functionStagingDir) throws IOException, com.microsoft.azure.toolkit.lib.common.exception.AzureExecutionException - Throws:
IOExceptioncom.microsoft.azure.toolkit.lib.common.exception.AzureExecutionException
-
writeObjectToFile
protected void writeObjectToFile(com.fasterxml.jackson.databind.ObjectWriter objectWriter, Object object, File targetFile) throws IOException - Throws:
IOException
-
getObjectWriter
protected com.fasterxml.jackson.databind.ObjectWriter getObjectWriter() -
findFunctions
public void findFunctions(io.quarkus.deployment.builditem.CombinedIndexBuildItem combined, io.quarkus.deployment.annotations.BuildProducer<AzureFunctionBuildItem> functions) -
registerArc
public void registerArc(io.quarkus.deployment.annotations.BuildProducer<io.quarkus.arc.deployment.UnremovableBeanBuildItem> unremovableBeans, io.quarkus.deployment.annotations.BuildProducer<io.quarkus.arc.deployment.AdditionalBeanBuildItem> additionalBeans, List<AzureFunctionBuildItem> functions) -
isScoped
-