public class FunctionApplication extends StreamFunctionExecutor
| Modifier and Type | Field and Description |
|---|---|
protected ApplicationContext |
applicationContext
The current
ApplicationContext. |
static String |
DATA_OPTION
The data option.
|
static String |
DEBUG_OPTIONS
The debug option.
|
| Constructor and Description |
|---|
FunctionApplication() |
| Modifier and Type | Method and Description |
|---|---|
protected ApplicationContext |
buildApplicationContext(C context) |
static void |
main(String... args)
The main method which is the entry point.
|
protected ApplicationContextBuilder |
newApplicationContextBuilder()
Builds a new builder.
|
protected ExecutableMethod<Object,Object> |
resolveFunction(LocalFunctionRegistry localFunctionRegistry,
String functionName)
Resolve a function from the
LocalFunctionRegistry. |
protected String |
resolveFunctionName(Environment env)
Resolves the function name to execution for the environment.
|
static void |
run(StreamFunctionExecutor functionExecutor,
String... args)
Run the given
StreamFunctionExecutor for the given arguments. |
protected Environment |
startEnvironment(ApplicationContext applicationContext)
Start the environment specified.
|
closeApplicationContext, execute, executepublic static final String DATA_OPTION
public static final String DEBUG_OPTIONS
protected ApplicationContext applicationContext
ApplicationContext.public static void main(String... args)
args - The argumentspublic static void run(StreamFunctionExecutor functionExecutor, String... args)
StreamFunctionExecutor for the given arguments.functionExecutor - The function executorargs - The argumentsprotected ExecutableMethod<Object,Object> resolveFunction(LocalFunctionRegistry localFunctionRegistry, String functionName)
LocalFunctionRegistry.localFunctionRegistry - The LocalFunctionRegistryfunctionName - The function nameprotected String resolveFunctionName(Environment env)
env - The environmentprotected ApplicationContext buildApplicationContext(@Nullable C context)
context - A platform specific context objectApplicationContext to use@Nonnull protected ApplicationContextBuilder newApplicationContextBuilder()
ApplicationContextBuilderprotected Environment startEnvironment(ApplicationContext applicationContext)
applicationContext - the application context with the environment