public class FunctionApplication extends StreamFunctionExecutor
| Modifier and Type | Field and Description | 
|---|---|
| protected ApplicationContext | applicationContextThe current  ApplicationContext. | 
| static String | DATA_OPTIONThe data option. | 
| static String | DEBUG_OPTIONSThe 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  StreamFunctionExecutorfor 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