public class BinaryRuleBaseLoader extends Object
Constructor and Description |
---|
BinaryRuleBaseLoader()
This will create a new default rulebase (which is initially empty).
|
BinaryRuleBaseLoader(org.kie.internal.KnowledgeBase kBase)
This will add any binary packages to the rulebase.
|
BinaryRuleBaseLoader(org.kie.internal.KnowledgeBase kBase,
ClassLoader classLoader)
This will add any binary packages to the rulebase.
|
Modifier and Type | Method and Description |
---|---|
void |
addPackage(InputStream in)
This will add the BINARY package to the rulebase.
|
void |
addPackage(InputStream in,
ClassLoader classLoader)
This will add the BINARY package to the rulebase.
|
org.kie.internal.KnowledgeBase |
getKnowledgeBase() |
public BinaryRuleBaseLoader()
public BinaryRuleBaseLoader(org.kie.internal.KnowledgeBase kBase)
public BinaryRuleBaseLoader(org.kie.internal.KnowledgeBase kBase, ClassLoader classLoader)
public void addPackage(InputStream in)
in
- An input stream to the serialized package.public void addPackage(InputStream in, ClassLoader classLoader)
in
- An input stream to the serialized package.classLoader
- used as the parent ClassLoader for the Package's internal
ClassLaoderpublic org.kie.internal.KnowledgeBase getKnowledgeBase()
Copyright © 2001–2015 JBoss by Red Hat. All rights reserved.