public class JavaKnowledgeBaseInterpreter extends BaseKnowledgeBaseInterpreter
| Modifier and Type | Field and Description |
|---|---|
static org.openksavi.sponge.kb.KnowledgeBaseType |
TYPE |
protected Map<String,Object> |
variables |
| Constructor and Description |
|---|
JavaKnowledgeBaseInterpreter(org.openksavi.sponge.engine.Engine engine,
org.openksavi.sponge.kb.KnowledgeBase knowledgeBase) |
| Modifier and Type | Method and Description |
|---|---|
protected <T> T |
doCreateInstance(String className,
Class<T> javaClass)
Creates an instance of the given class.
|
boolean |
existsVariable(String name) |
Throwable |
getJavaException(Throwable knowledgeBaseException) |
String |
getScriptKnowledgeBaseProcessorClassName(Object processorClass) |
Object |
getVariable(String name) |
Object |
invokeMethod(Object target,
String name,
Object... args) |
boolean |
isKnowledgeBaseException(Throwable exception) |
void |
setVariable(String name,
Object value) |
createPluginInstance, createProcessorInstance, getCustomRuleEventSpec, getEngineOperations, getLogger, getRuleEventSpec, getType, getVariable, resolveEventNameAndAliaspublic JavaKnowledgeBaseInterpreter(org.openksavi.sponge.engine.Engine engine,
org.openksavi.sponge.kb.KnowledgeBase knowledgeBase)
public boolean existsVariable(String name)
public boolean isKnowledgeBaseException(Throwable exception)
public String getScriptKnowledgeBaseProcessorClassName(Object processorClass)
protected <T> T doCreateInstance(String className, Class<T> javaClass)
BaseKnowledgeBaseInterpreterdoCreateInstance in class BaseKnowledgeBaseInterpreterT - instance typeclassName - class name.javaClass - processor class.Copyright © 2016–2017 Softelnet. All rights reserved.