|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ContextProvider
Loads a 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
Method Summary | |
---|---|
Context |
loadContext(SelectionCriteria selectionCriteria,
Map<Term,Object> facts,
ExecutionOptions executionOptions)
Loads the context for the given selection criteria, facts, and execution options. |
Method Detail |
---|
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 behavior
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |