Class FunctionApplication
java.lang.Object
io.micronaut.function.executor.AbstractExecutor
io.micronaut.function.executor.StreamFunctionExecutor
io.micronaut.function.executor.FunctionApplication
- All Implemented Interfaces:
ApplicationContextProvider, Closeable, AutoCloseable
Allows executing functions from the CLI.
- Since:
- 1.0
- Author:
- Graeme Rocher
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe data option.static final StringThe debug option.Fields inherited from class AbstractExecutor
applicationContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidThe main method which is the entry point.static voidrun(StreamFunctionExecutor functionExecutor, String... args) Run the givenStreamFunctionExecutorfor the given arguments.Methods inherited from class StreamFunctionExecutor
execute, executeMethods inherited from class AbstractExecutor
buildApplicationContext, close, getApplicationContext, newApplicationContextBuilder, resolveFunction, resolveFunctionName, startEnvironment
-
Field Details
-
DATA_OPTION
-
DEBUG_OPTIONS
-
-
Constructor Details
-
FunctionApplication
public FunctionApplication()
-
-
Method Details
-
main
The main method which is the entry point.- Parameters:
args- The arguments
-
run
Run the givenStreamFunctionExecutorfor the given arguments.- Parameters:
functionExecutor- The function executorargs- The arguments
-