|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.drools.brms.server.rules.SuggestionCompletionLoader
public class SuggestionCompletionLoader
This utility class loads suggestion completion stuff for the package configuration, introspecting from models, templates etc. This also includes DSL stuff, basically, everything you need to get started with a package. It also validates the package configuration, and can provide errors. This does NOT validate assets in the package, other then to load up DSLs, models etc as needed. FYI: the tests for this are in the BRMS module, in context of a full BRMS.
Field Summary | |
---|---|
protected List |
errors
|
Constructor Summary | |
---|---|
SuggestionCompletionLoader()
This uses the current classes classloader as a base, and jars can be added. |
|
SuggestionCompletionLoader(ClassLoader classLoader)
This allows a pre existing classloader to be used (and preferred) for resolving types. |
Method Summary | |
---|---|
List |
getErrors()
Returns a list of String errors. |
SuggestionCompletionEngine |
getSuggestionEngine(String header,
List jars,
List dsls)
This will validate, and generate a new engine, ready to go. |
boolean |
hasErrors()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected List errors
Constructor Detail |
---|
public SuggestionCompletionLoader()
public SuggestionCompletionLoader(ClassLoader classLoader)
Method Detail |
---|
public SuggestionCompletionEngine getSuggestionEngine(String header, List jars, List dsls)
header
- The package configuration file content.jars
- a list of jars to look inside (pass in empty array if not needed)
this is a list of JarInputStream
dsls
- any dsl files. This is a list of DSLMappingFile
.
public boolean hasErrors()
public List getErrors()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |