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
Modifier and TypeFieldDescriptionstatic final String
The data option.static final String
The debug option.Fields inherited from class io.micronaut.function.executor.AbstractExecutor
applicationContext
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
The main method which is the entry point.static void
run
(StreamFunctionExecutor functionExecutor, String... args) Run the givenStreamFunctionExecutor
for the given arguments.Methods inherited from class io.micronaut.function.executor.StreamFunctionExecutor
execute, execute
Methods 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 givenStreamFunctionExecutor
for the given arguments.- Parameters:
functionExecutor
- The function executorargs
- The arguments
-