C - The actual type of the container (depends on the implementation provider)public abstract class AbstractRulesServiceImpl<C> extends Object implements RulesService
| Constructor and Description |
|---|
AbstractRulesServiceImpl(RulesetContainerResolver<C> rulesetContainerResolver)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
<T> List<T> |
executeRules(List<T> input)
Executes the rules on a list of beans
|
<T> T |
executeRules(T input)
Executes the rules on a single bean
|
protected C |
getContainer(String logicalName)
Helper method to retrieve the proper rules container based on the logical name of the rule set
|
protected C |
getDefaultContainer()
Helper method to retrieve the default rules container
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdefaultRuleset, getRulesetpublic AbstractRulesServiceImpl(RulesetContainerResolver<C> rulesetContainerResolver)
rulesetContainerResolver - The policy to retrieve the RulesetContainerspublic <T> T executeRules(T input)
StatelessRulesExecutorexecuteRules in interface StatelessRulesExecutorT - the type of the beaninput - T the input beanpublic <T> List<T> executeRules(List<T> input)
StatelessRulesExecutorexecuteRules in interface StatelessRulesExecutorT - the type of the beaninput - List of input beansprotected C getDefaultContainer()
Copyright © 2017–2020 NTT DATA Corporation. All rights reserved.