Package step.core.execution
Class ExecutionEngine.Builder
java.lang.Object
step.core.execution.ExecutionEngine.Builder
- Enclosing class:
- ExecutionEngine
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
withObjectHookRegistry
(step.core.objectenricher.ObjectHookRegistry objectHookRegistry) Use a specificObjectHookRegistry
to handle object enrichment and filteringwithOperationMode
(OperationMode operationMode) Sets the operation mode of theExecutionEngine
.withParentContext
(AbstractExecutionEngineContext parentContext) Sets a parent context from which the attributes should be inheritedwithPlugin
(ExecutionEnginePlugin plugin) withPlugins
(List<ExecutionEnginePlugin> plugins) Searches for classes annotated byPlugin
and implementingExecutionEnginePlugin
in the classpath and add them to the list of plugins to be used by theExecutionEngine
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
withPlugin
- Parameters:
plugin
- the instance ofPlugin
to be added- Returns:
-
withPlugins
- Parameters:
plugins
- theList
ofPlugin
isntances- Returns:
-
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
Sets the operation mode of theExecutionEngine
.OperationMode
- Parameters:
operationMode
- the operation mode of theExecutionEngine
- Returns:
-
withParentContext
Sets a parent context from which the attributes should be inherited- Parameters:
parentContext
-- Returns:
-
withObjectHookRegistry
public ExecutionEngine.Builder withObjectHookRegistry(step.core.objectenricher.ObjectHookRegistry objectHookRegistry) Use a specificObjectHookRegistry
to handle object enrichment and filtering- Parameters:
objectHookRegistry
- theObjectHookRegistry
to be used- Returns:
-
build
- Returns:
- creates the
ExecutionEngine
instance
-