|
Oracle Fusion Middleware Java API Reference for Oracle Business Rules 11g Release 1 (11.1.1) E10663-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DictionaryFinder
A RuleDictionary
uses a DictionaryFinder to access linked dictionaries. The RuleDictionary implementation will call the DictionaryFinder.findDictionary(String,String)
method very often (at least once per RuleDictionary.update(java.util.List<oracle.rules.sdk2.exception.SDKWarning>)
). Therefore, the findDictionary implementation MUST CACHE the last returned RuleDictionary, and continue to return the cached value unless the underlying RuleDictionary file or edit buffer changes. Change detection is up to the implementation. If it is cheap, findDictionary can poll the underlying file or edit buffer. If the underlying file or edit buffer supports change notification, then the dictionary finder should register to receive change notifications and clear the cache. In an editing environment with several editors open on different dictionaries, DictionaryFinder.findDictionary(java.lang.String, java.lang.String)
should load its RuleDictionary from the editor's RuleDictionary using RuleDictionary.createHandle()
). This way, editors will be able to see each others changes in a coordinated way.
AbstractDictionaryFinder
Field Summary | |
---|---|
static long |
serialVersionUID |
Method Summary | |
---|---|
RuleDictionary |
findDictionary(DictionaryFQN fqn) Find a dictionary given a fully qualified name |
RuleDictionary |
findDictionary(java.lang.String pkg, java.lang.String name) Find a dictionary given a fully qualified package name and a name within the package. |
Field Detail |
---|
static final long serialVersionUID
Method Detail |
---|
RuleDictionary findDictionary(java.lang.String pkg, java.lang.String name)
pkg
- fully qualified package name, e.g. foo.barname
- unqualified name, e.g. MyDicRuleDictionary findDictionary(DictionaryFQN fqn)
fqn
- DictionaryFQN
|
Oracle Fusion Middleware Java API Reference for Oracle Business Rules 11g Release 1 (11.1.1) E10663-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |