站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss RULES 4.0.0.11754MR2 API 英文版文档

RuleBaseLoader (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档


org.drools.compiler
Class RuleBaseLoader

java.lang.Object
  extended by org.drools.compiler.RuleBaseLoader

public class RuleBaseLoader
extends Object

A high level helper class for creating rulebases from source. For additional control, refer to the DrlParser and PackageBuilder classes. You can have much more detailed control with the lower level classes.

Author:
Michael Neale

Method Summary
static RuleBaseLoader getInstance()
          Get an instance of the loader
 RuleBase loadFromReader(Reader drl)
          Create a new RuleBase from the drl source.
 RuleBase loadFromReader(Reader drl, Reader dsl)
          Create a new RuleBase from the drl and dsl source.
 void setDefaultEngineType(int type)
          Replace the default engine type that will be used (default is RETEOO)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static RuleBaseLoader getInstance()
Get an instance of the loader


loadFromReader

public RuleBase loadFromReader(Reader drl)
                        throws CheckedDroolsException,
                               IOException
Create a new RuleBase from the drl source. Uses the current default engine type.

Throws:
CheckedDroolsException
IOException

loadFromReader

public RuleBase loadFromReader(Reader drl,
                               Reader dsl)
                        throws CheckedDroolsException,
                               IOException
Create a new RuleBase from the drl and dsl source. Uses the current default engine type.

Throws:
CheckedDroolsException
IOException

setDefaultEngineType

public void setDefaultEngineType(int type)
Replace the default engine type that will be used (default is RETEOO)



Copyright © 2001-2007 JBoss Inc.. All Rights Reserved.