| java.lang.Object org.drools.brms.server.rules.SuggestionCompletionLoader
All known Subclasses: org.drools.brms.server.util.BRMSSuggestionCompletionLoader,
SuggestionCompletionLoader | public class SuggestionCompletionLoader (Code) | | 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.
author: Michael Neale |
SuggestionCompletionLoader | public SuggestionCompletionLoader()(Code) | | This uses the current classes classloader as a base, and jars can be
added.
|
SuggestionCompletionLoader | public SuggestionCompletionLoader(ClassLoader classLoader)(Code) | | This allows a pre existing classloader to be used (and preferred) for
resolving types.
|
getErrors | public List getErrors()(Code) | | Returns a list of String errors.
|
getSuggestionEngine | public SuggestionCompletionEngine getSuggestionEngine(String header, List jars, List dsls)(Code) | | This will validate, and generate a new engine, ready to go. If there are
errors, you can get them by doing getErrors();
Parameters: header - The package configuration file content. Parameters: jars - a list of jars to look inside (pass in empty array if notneeded) this is a list of JarInputStream Parameters: dsls - any dsl files. This is a list of DSLMappingFile. A SuggestionCompletionEngine ready to be used in anger. |
getSuggestionEngine | public SuggestionCompletionEngine getSuggestionEngine(String header, List jars, List dsls, List dataEnums)(Code) | | This will validate, and generate a new engine, ready to go. If there are
errors, you can get them by doing getErrors();
Parameters: header - The package configuration file content. Parameters: jars - a list of jars to look inside (pass in empty array if notneeded) this is a list of JarInputStream Parameters: dsls - any dsl files. This is a list of DSLMappingFile. Parameters: dataEnums - this is a list of String's which hold data enum definitions.(normally will be just one, but for completeness can load multiple). A SuggestionCompletionEngine ready to be used in anger. |
hasErrors | public boolean hasErrors()(Code) | | true if there were errors when processing the package. |
removeIrrelevantFields | String[] removeIrrelevantFields(String[] fields)(Code) | | This will remove the unneeded "fields" that come from java.lang.Object
these are really not needed for the modeller.
|
|
|