|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.drools.smf.SemanticsReader
public class SemanticsReader
Loader of SemanticModule s from a set of properties.
The required properties are:
module.uri=uri: To denote the URI of the
module.tagname=classname. For each semantic
component to associate a tag with the component.
Instances of SemanticsReader are re-entrant and thread-safe.
The singleton may be used simultaneously by multiple threads.
| Constructor Summary | |
|---|---|
SemanticsReader()
Construct. |
|
| Method Summary | |
|---|---|
static SemanticsReader |
getInstance()
Retrieve the singleton instance. |
protected java.lang.String |
parseName(java.lang.String key)
|
protected java.lang.String |
parseType(java.lang.String key)
|
SemanticModule |
read(java.io.InputStream in,
java.lang.ClassLoader cl)
Read a semantic module descriptor from an InputStream. |
SemanticModule |
read(java.net.URL url)
|
SemanticModule |
read(java.net.URL url,
java.lang.ClassLoader cl)
Read a semantic module descriptor from a URL. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SemanticsReader()
| Method Detail |
|---|
public static SemanticsReader getInstance()
public SemanticModule read(java.net.URL url)
throws java.io.IOException,
SemanticsReaderException
java.io.IOException
SemanticsReaderException
public SemanticModule read(java.net.URL url,
java.lang.ClassLoader cl)
throws java.io.IOException,
SemanticsReaderException
URL.
url - The descriptor URL.
java.io.IOException
SemanticsReaderException
public SemanticModule read(java.io.InputStream in,
java.lang.ClassLoader cl)
throws java.io.IOException,
SemanticsReaderException
InputStream.
in - The descriptor input stream.
java.io.IOException - If an error occurs while loading the module.
SemanticsReaderException - If an error occurs while loading the module.protected java.lang.String parseType(java.lang.String key)
protected java.lang.String parseName(java.lang.String key)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||