Package io.micronaut.function.executor
Class FunctionApplication
java.lang.Object
io.micronaut.function.executor.AbstractExecutor<C>
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 io.micronaut.function.executor.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 io.micronaut.function.executor.StreamFunctionExecutor
execute, executeMethods inherited from class io.micronaut.function.executor.AbstractExecutor
buildApplicationContext, close, getApplicationContext, newApplicationContextBuilder, resolveFunction, resolveFunctionName, startEnvironment
-
Field Details
-
DATA_OPTION
The data option.- See Also:
-
DEBUG_OPTIONS
The debug option.- See Also:
-
-
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
-