Class DefaultLogicExecutorFactory
java.lang.Object
de.hybris.platform.integrationservices.virtualattributes.impl.DefaultLogicExecutorFactory
- All Implemented Interfaces:
LogicExecutorFactory
Default implementation of the
LogicExecutorFactory-
Constructor Summary
ConstructorsConstructorDescriptionDefaultLogicExecutorFactory(@NotNull ScriptingLanguagesService scriptingLanguagesService) -
Method Summary
Modifier and TypeMethodDescriptioncreate(@NotNull LogicExecutorContext context) Creates aLogicExecutorfrom the givenLogicExecutorContext
-
Constructor Details
-
DefaultLogicExecutorFactory
public DefaultLogicExecutorFactory(@NotNull @NotNull ScriptingLanguagesService scriptingLanguagesService)
-
-
Method Details
-
create
Creates aLogicExecutorfrom the givenLogicExecutorContext- Specified by:
createin interfaceLogicExecutorFactory- Parameters:
context- Provides context on how to create the executor- Returns:
- An instance of the
LogicExecutorthat can handle the providedLogicExecutorContext. If noLogicExecutorcan handle theLogicExecutorContext, a default implementation of theLogicExecutoris returned whereLogicExecutor.execute(LogicParams)throws theVirtualAttributeConfigurationException. - Throws:
IllegalArgumentException- if thecontextparameter isnull
-