|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drools.builder.KnowledgeBuilderFactory
public class KnowledgeBuilderFactory
This factory is used to build the knowledge base resources that are held collectively in KnowledgePackages. The KnowledgePackage also provides the role of 'namespacing'. An optional KnowlegeBuilderConfiguration can be supplied. The KnowledgeBuilderConfiguration is itself created from this factory. The KnowledgeBuilderConfiguration allows you to set the ClassLoader to be used along with other setting like the default dialect and compiler, as well as many other options.
KnowledgeBuilder kbuilder = KnowlegeBuilderFactory.newKnowledgeBuilder();
Constructor Summary | |
---|---|
KnowledgeBuilderFactory()
|
Method Summary | |
---|---|
static DecisionTableConfiguration |
newDecisionTableConfiguration()
DecisionTable resources require a ResourceConfiguration, that configuration instance is created here. |
static JaxbConfiguration |
newJaxbConfiguration(com.sun.tools.xjc.Options xjcOpts,
String systemId)
|
static KnowledgeBuilder |
newKnowledgeBuilder()
Create and return a new KnowledgeBuilder, using the default KnowledgeBuilderConfigurations |
static KnowledgeBuilder |
newKnowledgeBuilder(KnowledgeBase kbase)
|
static KnowledgeBuilder |
newKnowledgeBuilder(KnowledgeBase kbase,
KnowledgeBuilderConfiguration conf)
|
static KnowledgeBuilder |
newKnowledgeBuilder(KnowledgeBuilderConfiguration conf)
Create and return a new KnowledgeBuilder, using he given KnowledgeBuilderConfigurations |
static KnowledgeBuilderConfiguration |
newKnowledgeBuilderConfiguration()
Create a KnowledgeBuilderConfiguration on which properties can be set. |
static KnowledgeBuilderConfiguration |
newKnowledgeBuilderConfiguration(Properties properties,
ClassLoader... classLoaders)
Create a KnowledgeBuilderConfiguration on which properties can be set. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KnowledgeBuilderFactory()
Method Detail |
---|
public static KnowledgeBuilder newKnowledgeBuilder()
public static KnowledgeBuilder newKnowledgeBuilder(KnowledgeBuilderConfiguration conf)
public static KnowledgeBuilder newKnowledgeBuilder(KnowledgeBase kbase)
public static KnowledgeBuilder newKnowledgeBuilder(KnowledgeBase kbase, KnowledgeBuilderConfiguration conf)
public static KnowledgeBuilderConfiguration newKnowledgeBuilderConfiguration()
public static KnowledgeBuilderConfiguration newKnowledgeBuilderConfiguration(Properties properties, ClassLoader... classLoaders)
public static DecisionTableConfiguration newDecisionTableConfiguration()
KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder(); DecisionTableConfiguration dtconf = KnowledgeBuilderFactory.newDecisionTableConfiguration(); dtconf.setInputType( DecisionTableInputType.XLS ); dtconf.setWorksheetName( "Tables_2" ); kbuilder.add( new URL( "file://IntegrationExampleTest.xls" ), ResourceType.DTABLE, dtconf ); assertFalse( kbuilder.hasErrors() ); KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase();
public static JaxbConfiguration newJaxbConfiguration(com.sun.tools.xjc.Options xjcOpts, String systemId)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |