public class RuleRepositoryContextProvider extends Object implements ContextProvider
Constructor and Description |
---|
RuleRepositoryContextProvider() |
Modifier and Type | Method and Description |
---|---|
protected ContextSelectionCriteria |
constructContextSelectionCriteria(SelectionCriteria selectionCriteria) |
Context |
loadContext(SelectionCriteria selectionCriteria,
Map<Term,Object> facts,
ExecutionOptions executionOptions)
Loads the context for the given selection criteria, facts, and execution
options.
|
protected Context |
loadContextFromDefinition(ContextDefinition contextDefinition) |
void |
setRepositoryToEngineTranslator(RepositoryToEngineTranslator repositoryToEngineTranslator) |
void |
setRuleRepositoryService(RuleRepositoryService ruleRepositoryService) |
public RuleRepositoryContextProvider()
public Context loadContext(SelectionCriteria selectionCriteria, Map<Term,Object> facts, ExecutionOptions executionOptions)
ContextProvider
In the case where multiple Contexts could potentially be identified from the same set of selection criteria, it is up to the implementer of the ContextProvider to ensure that the most appropriate Context is returned. Or alternatively, an exception could be thrown indicating context ambiguity.
The sectionCriteria, facts, and executionOptions which are passed to this method should never be null. However, they might be empty.
loadContext
in interface ContextProvider
selectionCriteria
- the criteria to use during the selection phase of engine operationfacts
- the set of facts that are supplied to the engine at execution timeexecutionOptions
- a collection of options that can be used to customize engine execution behaviorprotected Context loadContextFromDefinition(ContextDefinition contextDefinition)
public void setRuleRepositoryService(RuleRepositoryService ruleRepositoryService)
public void setRepositoryToEngineTranslator(RepositoryToEngineTranslator repositoryToEngineTranslator)
protected ContextSelectionCriteria constructContextSelectionCriteria(SelectionCriteria selectionCriteria)
Copyright © 2005–2015 The Kuali Foundation. All rights reserved.