Class RulesEngineAutoConfiguration
- java.lang.Object
-
- com.broadleafcommerce.rulesengine.autoconfigure.RulesEngineAutoConfiguration
-
@Configuration @EnableConfigurationProperties(RuleBuilderParserProperties.class) public class RulesEngineAutoConfiguration extends Object
Auto configuration entry point for the rules engine library- Author:
- Nathan Moore (nathanmoore).
-
-
Field Summary
Fields Modifier and Type Field Description protected RuleBuilderParserPropertiesparserProperties
-
Constructor Summary
Constructors Constructor Description RulesEngineAutoConfiguration(RuleBuilderParserProperties parserProperties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>defaultExpressionVariables()List<org.springframework.expression.PropertyAccessor>defaultPropertyAccessors()CachingStdEvaluationContextFactoryevaluationContextFactory(List<org.springframework.expression.PropertyAccessor> defaultPropertyAccessors)Supplier<org.springframework.expression.spel.support.StandardEvaluationContext>evaluationContextSupplier()org.springframework.expression.spel.standard.SpelExpressionParserspelParser()org.springframework.expression.spel.SpelParserConfigurationspelParserConfiguration()SpelRuleEvaluationServicespelRuleEvaluationService(List<org.springframework.expression.PropertyAccessor> defaultPropertyAccessors)
-
-
-
Field Detail
-
parserProperties
protected final RuleBuilderParserProperties parserProperties
-
-
Constructor Detail
-
RulesEngineAutoConfiguration
@Autowired public RulesEngineAutoConfiguration(RuleBuilderParserProperties parserProperties)
-
-
Method Detail
-
spelParserConfiguration
@Bean @ConditionalOnMissingBean public org.springframework.expression.spel.SpelParserConfiguration spelParserConfiguration()
-
spelParser
@Bean @ConditionalOnMissingBean public org.springframework.expression.spel.standard.SpelExpressionParser spelParser()
-
evaluationContextSupplier
@Bean @ConditionalOnMissingBean(name="evaluationContextSupplier") public Supplier<org.springframework.expression.spel.support.StandardEvaluationContext> evaluationContextSupplier()
-
spelRuleEvaluationService
@Bean @ConditionalOnMissingBean public SpelRuleEvaluationService spelRuleEvaluationService(@Autowired(required=false) List<org.springframework.expression.PropertyAccessor> defaultPropertyAccessors)
-
defaultPropertyAccessors
@Bean @ConditionalOnMissingBean(name="defaultPropertyAccessors") public List<org.springframework.expression.PropertyAccessor> defaultPropertyAccessors()
-
defaultExpressionVariables
@Bean @ConditionalOnMissingBean(name="defaultExpressionVariables") public Map<String,Object> defaultExpressionVariables()
-
evaluationContextFactory
@Bean @ConditionalOnMissingBean public CachingStdEvaluationContextFactory evaluationContextFactory(@Autowired(required=false) List<org.springframework.expression.PropertyAccessor> defaultPropertyAccessors)
-
-