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

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


org.drools.brms.server.builder
Class BRMSPackageBuilder

java.lang.Object
  extended by org.drools.compiler.PackageBuilder
      extended by org.drools.brms.server.builder.BRMSPackageBuilder

public class BRMSPackageBuilder
extends PackageBuilder

This decorates the drools-compiler PackageBuilder with some functionality needed for the BRMS. This can use the BRMS repo as a classpath.

Author:
Michael Neale

Nested Class Summary
static interface BRMSPackageBuilder.DSLErrorEvent
          This is used when loading Jars, DSLs etc to report errors.
 
Nested classes/interfaces inherited from class org.drools.compiler.PackageBuilder
PackageBuilder.ErrorHandler, PackageBuilder.FunctionErrorHandler, PackageBuilder.MissingPackageNameException, PackageBuilder.RuleErrorHandler, PackageBuilder.RuleInvokerErrorHandler
 
Constructor Summary
BRMSPackageBuilder(PackageBuilderConfiguration config)
          In the BRMS you should not need to use this, use the getInstance factory method instead.
 
Method Summary
 void clearErrors()
          This will reset the errors.
 List<DSLMappingFile> getDSLMappingFiles()
           
static List<DSLMappingFile> getDSLMappingFiles(PackageItem pkg, BRMSPackageBuilder.DSLErrorEvent err)
          Load up all the DSL mappping files for the given package.
static BRMSPackageBuilder getInstance(List<JarInputStream> classpath)
          This will give you a fresh new PackageBuilder using the given classpath.
static List<JarInputStream> getJars(PackageItem pkg)
          Load up all the Jars for the given package.
 void setDSLFiles(List<DSLMappingFile> files)
           
 
Methods inherited from class org.drools.compiler.PackageBuilder
addPackage, addPackageFromDrl, addPackageFromDrl, addPackageFromXml, getErrors, getPackage, hasErrors, resetErrors
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BRMSPackageBuilder

public BRMSPackageBuilder(PackageBuilderConfiguration config)
In the BRMS you should not need to use this, use the getInstance factory method instead.

Parameters:
config -
Method Detail

getInstance

public static BRMSPackageBuilder getInstance(List<JarInputStream> classpath)
This will give you a fresh new PackageBuilder using the given classpath.


clearErrors

public void clearErrors()
This will reset the errors.


setDSLFiles

public void setDSLFiles(List<DSLMappingFile> files)

getDSLMappingFiles

public List<DSLMappingFile> getDSLMappingFiles()

getDSLMappingFiles

public static List<DSLMappingFile> getDSLMappingFiles(PackageItem pkg,
                                                      BRMSPackageBuilder.DSLErrorEvent err)
Load up all the DSL mappping files for the given package.


getJars

public static List<JarInputStream> getJars(PackageItem pkg)
Load up all the Jars for the given package.



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