Package step.core.execution
Class ExecutionEngine.Builder
- java.lang.Object
-
- step.core.execution.ExecutionEngine.Builder
-
- Enclosing class:
- ExecutionEngine
public static class ExecutionEngine.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExecutionEngine
build()
ExecutionEngine.Builder
withObjectHookRegistry(ObjectHookRegistry objectHookRegistry)
Use a specificObjectHookRegistry
to handle object enrichment and filteringExecutionEngine.Builder
withOperationMode(OperationMode operationMode)
Sets the operation mode of theExecutionEngine
.ExecutionEngine.Builder
withParentContext(AbstractExecutionEngineContext parentContext)
Sets a parent context from which the attributes should be inheritedExecutionEngine.Builder
withPlugin(ExecutionEnginePlugin plugin)
ExecutionEngine.Builder
withPlugins(List<ExecutionEnginePlugin> plugins)
ExecutionEngine.Builder
withPluginsFromClasspath()
Searches for classes annotated byPlugin
and implementingExecutionEnginePlugin
in the classpath and add them to the list of plugins to be used by theExecutionEngine
-
-
-
Method Detail
-
withPlugin
public ExecutionEngine.Builder withPlugin(ExecutionEnginePlugin plugin)
- Parameters:
plugin
- the instance ofPlugin
to be added- Returns:
-
withPlugins
public ExecutionEngine.Builder withPlugins(List<ExecutionEnginePlugin> plugins)
- Parameters:
plugins
- theList
ofPlugin
isntances- Returns:
-
withPluginsFromClasspath
public ExecutionEngine.Builder withPluginsFromClasspath()
Searches for classes annotated byPlugin
and implementingExecutionEnginePlugin
in the classpath and add them to the list of plugins to be used by theExecutionEngine
- Returns:
-
withOperationMode
public ExecutionEngine.Builder withOperationMode(OperationMode operationMode)
Sets the operation mode of theExecutionEngine
.OperationMode
- Parameters:
operationMode
- the operation mode of theExecutionEngine
- Returns:
-
withParentContext
public ExecutionEngine.Builder withParentContext(AbstractExecutionEngineContext parentContext)
Sets a parent context from which the attributes should be inherited- Parameters:
parentContext
-- Returns:
-
withObjectHookRegistry
public ExecutionEngine.Builder withObjectHookRegistry(ObjectHookRegistry objectHookRegistry)
Use a specificObjectHookRegistry
to handle object enrichment and filtering- Parameters:
objectHookRegistry
- theObjectHookRegistry
to be used- Returns:
-
build
public ExecutionEngine build()
- Returns:
- creates the
ExecutionEngine
instance
-
-