|
KIE Internal 6.0.0.Beta1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kie.internal.KnowledgeBaseFactory
public class KnowledgeBaseFactory
This factory will create and return a KnowledgeBase instance, an optional KnowledgeBaseConfiguration can be provided. The KnowledgeBaseConfiguration is also itself created from this factory.
KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase();
Create sequential KnowledgeBase using the given ClassLoader.
Properties properties = new Properties(); properties.setOption( SequentialOption.YES ); KnowledgeBaseConfiguration kbConf = KnowledgeBaseFactory.newKnowledgeBaseConfiguration(properties, myClassLoader); KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase(kbConf);
The above could also have used the supported property
properties.setProperty( "org.kie.sequential", "true");
KnowledgeBase
Constructor Summary | |
---|---|
KnowledgeBaseFactory()
|
Method Summary | |
---|---|
static org.kie.api.runtime.Environment |
newEnvironment()
|
static KnowledgeBase |
newKnowledgeBase()
Create a new KnowledgeBase using the default KnowledgeBaseConfiguration |
static KnowledgeBase |
newKnowledgeBase(KieBaseConfiguration conf)
Create a new KnowledgeBase using the given KnowledgeBaseConfiguration |
static KnowledgeBase |
newKnowledgeBase(String kbaseId)
Create a new KnowledgeBase using the default KnowledgeBaseConfiguration and the given KnowledgeBase ID. |
static KnowledgeBase |
newKnowledgeBase(String kbaseId,
KieBaseConfiguration conf)
Create a new KnowledgeBase using the given KnowledgeBaseConfiguration and the given KnowledgeBase ID. |
static KieBaseConfiguration |
newKnowledgeBaseConfiguration()
Create a KnowledgeBaseConfiguration on which properties can be set. |
static KieBaseConfiguration |
newKnowledgeBaseConfiguration(Properties properties,
ClassLoader... classLoaders)
Create a KnowledgeBaseConfiguration on which properties can be set. |
static org.kie.api.runtime.KieSessionConfiguration |
newKnowledgeSessionConfiguration()
Create a KnowledgeSessionConfiguration on which properties can be set. |
static org.kie.api.runtime.KieSessionConfiguration |
newKnowledgeSessionConfiguration(Properties properties)
Create a KnowledgeSessionConfiguration on which properties can be set. |
static void |
setKnowledgeBaseServiceFactory(KnowledgeBaseFactoryService serviceFactory)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KnowledgeBaseFactory()
Method Detail |
---|
public static KnowledgeBase newKnowledgeBase()
public static KnowledgeBase newKnowledgeBase(String kbaseId)
kbaseId
- A string Identifier for the knowledge base. Specially useful when enabling
JMX monitoring and management, as that ID will be used to compose the
JMX ObjectName for all related MBeans. The application must ensure all kbase
IDs are unique.
public static KnowledgeBase newKnowledgeBase(KieBaseConfiguration conf)
public static KnowledgeBase newKnowledgeBase(String kbaseId, KieBaseConfiguration conf)
kbaseId
- A string Identifier for the knowledge base. Specially useful when enabling
JMX monitoring and management, as that ID will be used to compose the
JMX ObjectName for all related MBeans. The application must ensure all kbase
IDs are unique.
public static KieBaseConfiguration newKnowledgeBaseConfiguration()
public static KieBaseConfiguration newKnowledgeBaseConfiguration(Properties properties, ClassLoader... classLoaders)
public static org.kie.api.runtime.KieSessionConfiguration newKnowledgeSessionConfiguration()
public static org.kie.api.runtime.KieSessionConfiguration newKnowledgeSessionConfiguration(Properties properties)
public static org.kie.api.runtime.Environment newEnvironment()
public static void setKnowledgeBaseServiceFactory(KnowledgeBaseFactoryService serviceFactory)
|
KIE Internal 6.0.0.Beta1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |