Class DefaultLogicExecutorFactory
- java.lang.Object
-
- de.hybris.platform.integrationservices.virtualattributes.impl.DefaultLogicExecutorFactory
-
- All Implemented Interfaces:
LogicExecutorFactory
public class DefaultLogicExecutorFactory extends java.lang.Object implements LogicExecutorFactory
Default implementation of theLogicExecutorFactory
-
-
Constructor Summary
Constructors Constructor Description DefaultLogicExecutorFactory(@NotNull ScriptingLanguagesService scriptingLanguagesService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LogicExecutorcreate(@NotNull LogicExecutorContext context)Creates aLogicExecutorfrom the givenLogicExecutorContext
-
-
-
Constructor Detail
-
DefaultLogicExecutorFactory
public DefaultLogicExecutorFactory(@NotNull @NotNull ScriptingLanguagesService scriptingLanguagesService)
-
-
Method Detail
-
create
public LogicExecutor create(@NotNull @NotNull LogicExecutorContext context)
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:
java.lang.IllegalArgumentException- if thecontextparameter isnull
-
-