|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.drools.smf.DefaultSemanticsRepository
public final class 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. |
java.lang.ClassLoader |
getSemanticModuleClassLoader()
Gets the classloader that was chosen when the repository was initialised. |
SemanticModule[] |
getSemanticModules()
Retieve all SemanticModules. |
protected void |
init()
Initialize and perform discovery. |
protected void |
loadConfig(java.lang.String path)
|
protected void |
loadConfig(java.net.URL url)
|
protected void |
loadSemantics(java.lang.String semanticsName)
|
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.io.IOException,
SemanticsReaderException
java.lang.Exception - If an error occurs while performing discovery and loading of
the semantic modules.
java.io.IOException
SemanticsReaderException
protected void init()
throws java.io.IOException,
SemanticsReaderException
java.lang.Exception - If an error occurs while performing discovery and loading of
the semantic modules.
java.io.IOException
SemanticsReaderException
protected void loadConfig(java.lang.String path)
throws java.io.IOException,
SemanticsReaderException
java.io.IOException
SemanticsReaderException
protected void loadConfig(java.net.URL url)
throws java.io.IOException,
SemanticsReaderException
java.io.IOException
SemanticsReaderException
protected void loadSemantics(java.lang.String semanticsName)
throws java.io.IOException,
SemanticsReaderException
java.io.IOException
SemanticsReaderException
public SemanticModule lookupSemanticModule(java.lang.String uri)
throws NoSuchSemanticModuleException
SemanticsRepositorySemanticModule by URI.
lookupSemanticModule in interface SemanticsRepositoryuri - The URI.
SemanticModule.
NoSuchSemanticModuleException - If no module is bound to the URI.SemanticsRepositorypublic SemanticModule[] getSemanticModules()
SemanticsRepositorySemanticModules.
getSemanticModules in interface SemanticsRepositorySemanticsRepositorypublic java.lang.ClassLoader getSemanticModuleClassLoader()
getSemanticModuleClassLoader in interface SemanticsRepository
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||