public interface ContextProvider
Context
for the given set of criteria. Applications who
want to provide their own means for creating a context and supplying it to
the KRMS engine can do so by implementing a custom ContextProvider.Context
Modifier and Type | Method and Description |
---|---|
Context |
loadContext(SelectionCriteria selectionCriteria,
Map<Term,Object> facts,
ExecutionOptions executionOptions)
Loads the context for the given selection criteria, facts, and execution
options.
|
Context loadContext(SelectionCriteria selectionCriteria, Map<Term,Object> facts, ExecutionOptions executionOptions)
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.
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 behaviorCopyright © 2005–2015 The Kuali Foundation. All rights reserved.