org.drools.io
Class SemanticsLoader

java.lang.Object
  |
  +--org.drools.io.SemanticsLoader

public class SemanticsLoader
extends java.lang.Object

Loads SemanticModule definition from XML descriptor.

Author:
bob mcwhirter

Field Summary
static java.lang.String DESCRIPTOR_NAME
          Name of smf descriptor.
 
Constructor Summary
SemanticsLoader()
          Construct.
 
Method Summary
 SemanticModule load(java.lang.String packageName)
          Load a SemanticModule deifnition from a URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DESCRIPTOR_NAME

public static final java.lang.String DESCRIPTOR_NAME
Name of smf descriptor.
Constructor Detail

SemanticsLoader

public SemanticsLoader()
Construct.
Method Detail

load

public SemanticModule load(java.lang.String packageName)
                    throws java.io.IOException,
                           java.lang.Exception
Load a SemanticModule deifnition from a URL.
Parameters:
packageName - The java package containing the module.
Returns:
The loaded semantic module or null if none found.
Throws:
java.io.IOException - If an IO errors occurs.
java.lang.Exception - If an error occurs evaluating the definition.


Copyright © 2001-2002 The Werken Company. All Rights Reserved.