|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.drools.smf.DefaultSemanticsRepository
Default SemanticsRepository
which uses discovery to autoload
semantic modules.
Any semantic module that conforms to the SMF contract will be
discovered and autoloaded upon first access of the DefaultSemanticsRepository
.
To be discovered, the module should be in a jar with a module descriptor
located at /META-INF/drools-semantics.properties
.
Method Summary | |
static SemanticsRepository |
getInstance()
Retrieve the singleton instance. |
SemanticModule[] |
getSemanticModules()
Retieve all SemanticModule s. |
protected void |
init()
Initialize and perform discovery. |
SemanticModule |
lookupSemanticModule(java.lang.String uri)
Lookup a SemanticModule by URI. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static SemanticsRepository getInstance() throws java.lang.Exception
java.lang.Exception
- If an error occurs while performing discovery
and loading of the semantic modules.protected void init() throws java.lang.Exception
java.lang.Exception
- If an error occurs while performing discovery
and loading of the semantic modules.public SemanticModule lookupSemanticModule(java.lang.String uri) throws NoSuchSemanticModuleException
SemanticsRepository
SemanticModule
by URI.
lookupSemanticModule
in interface SemanticsRepository
uri
- The URI.
SemanticModule
.
NoSuchSemanticModuleException
- If no module is bound to the URI.SemanticsRepository
public SemanticModule[] getSemanticModules()
SemanticsRepository
SemanticModule
s.
getSemanticModules
in interface SemanticsRepository
SemanticsRepository
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |