|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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. |
protected void |
loadConfig(String path)
|
protected void |
loadConfig(URL url)
|
protected void |
loadSemantics(String semanticsName)
|
SemanticModule |
lookupSemanticModule(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 Exception
Exception
- If an error occurs while performing discovery and
loading of the semantic modules.protected void init() throws Exception
Exception
- If an error occurs while performing discovery and
loading of the semantic modules.protected void loadConfig(String path) throws Exception
Exception
protected void loadConfig(URL url) throws Exception
Exception
protected void loadSemantics(String semanticsName) throws Exception
Exception
public SemanticModule lookupSemanticModule(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 |