public interface KnowledgeBaseFactoryService
extends org.kie.api.Service
Modifier and Type | Method and Description |
---|---|
org.kie.api.runtime.Environment |
newEnvironment()
Instantiate and return an Environment
|
KnowledgeBase |
newKnowledgeBase()
Instantiate and return a KnowledgeBase using a default KnowledgeBaseConfiguration
|
KnowledgeBase |
newKnowledgeBase(org.kie.api.KieBaseConfiguration conf)
Instantiate and return a KnowledgeBase using the given KnowledgeBaseConfiguration
|
KnowledgeBase |
newKnowledgeBase(String kbaseId)
Instantiate and return a KnowledgeBase using a default KnowledgeBaseConfiguration
and the given KnowledgeBase ID.
|
KnowledgeBase |
newKnowledgeBase(String kbaseId,
org.kie.api.KieBaseConfiguration conf)
Instantiate and return a KnowledgeBase using the given KnowledgeBaseConfiguration and
the given KnowledgeBase ID.
|
org.kie.api.KieBaseConfiguration |
newKnowledgeBaseConfiguration()
Instantiate and return a new KnowledgeBaseConfiguration
|
org.kie.api.KieBaseConfiguration |
newKnowledgeBaseConfiguration(Properties properties,
ClassLoader... classLoader)
Instantiate and return a new KnowledgeBaseConfiguration
|
org.kie.api.runtime.KieSessionConfiguration |
newKnowledgeSessionConfiguration()
Instantiate and return a new KnowledgeSessionConfiguration
|
org.kie.api.runtime.KieSessionConfiguration |
newKnowledgeSessionConfiguration(Properties properties)
Instantiate and return a new KnowledgeSessionConfiguration
|
org.kie.api.KieBaseConfiguration newKnowledgeBaseConfiguration()
org.kie.api.KieBaseConfiguration newKnowledgeBaseConfiguration(Properties properties, ClassLoader... classLoader)
properties
- Properties file to process, can be null;classLoader
- Provided ClassLoader, can be null and then ClassLoader defaults to Thread.currentThread().getContextClassLoader()org.kie.api.runtime.KieSessionConfiguration newKnowledgeSessionConfiguration()
org.kie.api.runtime.KieSessionConfiguration newKnowledgeSessionConfiguration(Properties properties)
properties
- Properties file to process, can be null;KnowledgeBase newKnowledgeBase()
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.KnowledgeBase newKnowledgeBase(org.kie.api.KieBaseConfiguration conf)
conf
- The KnowledgeBaseConfiguration to be usedKnowledgeBase newKnowledgeBase(String kbaseId, org.kie.api.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.conf
- The KnowledgeBaseConfiguration to be usedorg.kie.api.runtime.Environment newEnvironment()
Copyright © 2001–2016 JBoss by Red Hat. All rights reserved.