Class DefaultRuleCompilerService
- java.lang.Object
-
- de.hybris.platform.ruleengineservices.compiler.impl.DefaultRuleCompilerService
-
- All Implemented Interfaces:
RuleCompilerService
public class DefaultRuleCompilerService extends java.lang.Object implements RuleCompilerService
Default implementation ofRuleCompilerService.
-
-
Constructor Summary
Constructors Constructor Description DefaultRuleCompilerService()
-
Method Summary
-
-
-
Method Detail
-
compile
public RuleCompilerResult compile(AbstractRuleModel rule, java.lang.String moduleName)
Description copied from interface:RuleCompilerServiceCompiles a rule.- Specified by:
compilein interfaceRuleCompilerService- Parameters:
rule- - the rule to compilemoduleName- - the rules module name- Returns:
- rule compiler result
-
compile
public RuleCompilerResult compile(RuleCompilationContext ruleCompilationContext, AbstractRuleModel rule, java.lang.String moduleName)
Description copied from interface:RuleCompilerServiceCompiles a rule.- Specified by:
compilein interfaceRuleCompilerService- Parameters:
ruleCompilationContext- - instance ofRuleCompilationContextrule- - the rule to compilemoduleName- - the rules module name- Returns:
- rule compiler result
-
executeBeforeCompileListeners
protected void executeBeforeCompileListeners(DefaultRuleCompilerContext context, java.util.List<RuleCompilerListener> listeners)
-
executeAfterCompileListeners
protected void executeAfterCompileListeners(DefaultRuleCompilerContext context, java.util.List<RuleCompilerListener> listeners)
-
executeAfterCompileErrorListeners
protected void executeAfterCompileErrorListeners(DefaultRuleCompilerContext context, java.util.List<RuleCompilerListener> listeners)
-
getRuleCompilerListenersFactory
protected RuleCompilerListenersFactory getRuleCompilerListenersFactory()
-
setRuleCompilerListenersFactory
public void setRuleCompilerListenersFactory(RuleCompilerListenersFactory ruleCompilerListenersFactory)
-
getRuleSourceCodeTranslatorFactory
protected RuleSourceCodeTranslatorFactory getRuleSourceCodeTranslatorFactory()
-
getRuleIrVariablesGeneratorFactory
protected RuleIrVariablesGeneratorFactory getRuleIrVariablesGeneratorFactory()
-
setRuleIrVariablesGeneratorFactory
public void setRuleIrVariablesGeneratorFactory(RuleIrVariablesGeneratorFactory ruleIrVariablesGeneratorFactory)
-
getRuleCompilerContextFactory
protected RuleCompilerContextFactory<DefaultRuleCompilerContext> getRuleCompilerContextFactory()
-
setRuleCompilerContextFactory
public void setRuleCompilerContextFactory(RuleCompilerContextFactory<DefaultRuleCompilerContext> ruleCompilerContextFactory)
-
setRuleSourceCodeTranslatorFactory
public void setRuleSourceCodeTranslatorFactory(RuleSourceCodeTranslatorFactory ruleSourceCodeTranslatorFactory)
-
getRuleIrProcessorFactory
protected RuleIrProcessorFactory getRuleIrProcessorFactory()
-
setRuleIrProcessorFactory
public void setRuleIrProcessorFactory(RuleIrProcessorFactory ruleIrProcessorFactory)
-
getRuleTargetCodeGeneratorFactory
protected RuleTargetCodeGeneratorFactory getRuleTargetCodeGeneratorFactory()
-
setRuleTargetCodeGeneratorFactory
public void setRuleTargetCodeGeneratorFactory(RuleTargetCodeGeneratorFactory ruleTargetCodeGeneratorFactory)
-
getRuleCompilerResultFactory
protected RuleCompilerResultFactory getRuleCompilerResultFactory()
-
setRuleCompilerResultFactory
public void setRuleCompilerResultFactory(RuleCompilerResultFactory ruleCompilerResultFactory)
-
getModelService
protected ModelService getModelService()
-
setModelService
public void setModelService(ModelService modelService)
-
getRuleCompilationContextProvider
protected RuleCompilationContextProvider getRuleCompilationContextProvider()
-
setRuleCompilationContextProvider
public void setRuleCompilationContextProvider(RuleCompilationContextProvider ruleCompilationContextProvider)
-
-