|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.drools.compiler.PackageBuilder org.drools.brms.server.builder.BRMSPackageBuilder
public class BRMSPackageBuilder
This decorates the drools-compiler PackageBuilder with some functionality needed for the BRMS. This can use the BRMS repo as a classpath.
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 |
---|
public BRMSPackageBuilder(PackageBuilderConfiguration config)
config
- Method Detail |
---|
public static BRMSPackageBuilder getInstance(List<JarInputStream> classpath)
public void clearErrors()
public void setDSLFiles(List<DSLMappingFile> files)
public List<DSLMappingFile> getDSLMappingFiles()
public static List<DSLMappingFile> getDSLMappingFiles(PackageItem pkg, BRMSPackageBuilder.DSLErrorEvent err)
public static List<JarInputStream> getJars(PackageItem pkg)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |