Class DefaultRuleCompilerService
java.lang.Object
de.hybris.platform.ruleengineservices.compiler.impl.DefaultRuleCompilerService
- All Implemented Interfaces:
RuleCompilerService
Default implementation of
RuleCompilerService.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncompile(RuleCompilationContext ruleCompilationContext, AbstractRuleModel rule, String moduleName) Compiles a rule.compile(AbstractRuleModel rule, String moduleName) Compiles a rule.protected voidexecuteAfterCompileErrorListeners(DefaultRuleCompilerContext context, List<RuleCompilerListener> listeners) protected voidexecuteAfterCompileListeners(DefaultRuleCompilerContext context, List<RuleCompilerListener> listeners) protected voidexecuteBeforeCompileListeners(DefaultRuleCompilerContext context, List<RuleCompilerListener> listeners) protected ModelServiceprotected RuleCompilationContextProviderprotected RuleCompilerListenersFactoryprotected RuleCompilerResultFactoryprotected RuleIrProcessorFactoryprotected RuleIrVariablesGeneratorFactoryprotected RuleSourceCodeTranslatorFactoryprotected RuleTargetCodeGeneratorFactoryvoidsetModelService(ModelService modelService) voidsetRuleCompilationContextProvider(RuleCompilationContextProvider ruleCompilationContextProvider) voidsetRuleCompilerContextFactory(RuleCompilerContextFactory<DefaultRuleCompilerContext> ruleCompilerContextFactory) voidsetRuleCompilerListenersFactory(RuleCompilerListenersFactory ruleCompilerListenersFactory) voidsetRuleCompilerResultFactory(RuleCompilerResultFactory ruleCompilerResultFactory) voidsetRuleIrProcessorFactory(RuleIrProcessorFactory ruleIrProcessorFactory) voidsetRuleIrVariablesGeneratorFactory(RuleIrVariablesGeneratorFactory ruleIrVariablesGeneratorFactory) voidsetRuleSourceCodeTranslatorFactory(RuleSourceCodeTranslatorFactory ruleSourceCodeTranslatorFactory) voidsetRuleTargetCodeGeneratorFactory(RuleTargetCodeGeneratorFactory ruleTargetCodeGeneratorFactory)
-
Constructor Details
-
DefaultRuleCompilerService
public DefaultRuleCompilerService()
-
-
Method Details
-
compile
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, 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, List<RuleCompilerListener> listeners) -
executeAfterCompileListeners
protected void executeAfterCompileListeners(DefaultRuleCompilerContext context, List<RuleCompilerListener> listeners) -
executeAfterCompileErrorListeners
protected void executeAfterCompileErrorListeners(DefaultRuleCompilerContext context, List<RuleCompilerListener> listeners) -
getRuleCompilerListenersFactory
-
setRuleCompilerListenersFactory
public void setRuleCompilerListenersFactory(RuleCompilerListenersFactory ruleCompilerListenersFactory) -
getRuleSourceCodeTranslatorFactory
-
getRuleIrVariablesGeneratorFactory
-
setRuleIrVariablesGeneratorFactory
public void setRuleIrVariablesGeneratorFactory(RuleIrVariablesGeneratorFactory ruleIrVariablesGeneratorFactory) -
getRuleCompilerContextFactory
-
setRuleCompilerContextFactory
public void setRuleCompilerContextFactory(RuleCompilerContextFactory<DefaultRuleCompilerContext> ruleCompilerContextFactory) -
setRuleSourceCodeTranslatorFactory
public void setRuleSourceCodeTranslatorFactory(RuleSourceCodeTranslatorFactory ruleSourceCodeTranslatorFactory) -
getRuleIrProcessorFactory
-
setRuleIrProcessorFactory
-
getRuleTargetCodeGeneratorFactory
-
setRuleTargetCodeGeneratorFactory
public void setRuleTargetCodeGeneratorFactory(RuleTargetCodeGeneratorFactory ruleTargetCodeGeneratorFactory) -
getRuleCompilerResultFactory
-
setRuleCompilerResultFactory
-
getModelService
-
setModelService
-
getRuleCompilationContextProvider
-
setRuleCompilationContextProvider
public void setRuleCompilationContextProvider(RuleCompilationContextProvider ruleCompilationContextProvider)
-