public class KnowledgeService extends Object
KnowledgeService is a root element of every Evrete-based application.
It holds initial Configuration, security settings, references to all
required SPI implementations, and an instance of Java ExecutorService.
| Constructor and Description |
|---|
KnowledgeService() |
KnowledgeService(Configuration conf) |
public KnowledgeService(Configuration conf)
public KnowledgeService()
public SourceSecurity getSecurity()
public ClassLoader getClassLoader()
public void setClassLoader(ClassLoader classLoader)
public Knowledge newKnowledge(String dsl, URL... resources) throws IOException
Knowledge instance built by DSL provider from given resources.IOExceptionpublic Knowledge newKnowledge(String dsl, Reader... resources) throws IOException
Knowledge instance built by DSL provider from given resources.IOExceptionpublic Knowledge newKnowledge(String dsl, InputStream... resources) throws IOException
Knowledge instance built by DSL provider from given resources.IOExceptionpublic Knowledge newKnowledge(String dsl, Class<?>... resources) throws IOException
IOExceptionpublic void shutdown()
public org.evrete.runtime.async.ForkJoinExecutor getExecutor()
public Configuration getConfiguration()
public MemoryFactoryProvider getMemoryFactoryProvider()
public ExpressionResolverProvider getExpressionResolverProvider()
public LiteralRhsCompiler getLiteralRhsCompiler()
public TypeResolverProvider getTypeResolverProvider()
public Knowledge newKnowledge(String dsl, String... resources) throws IOException
IOException@Deprecated public StatefulSession newSession()
Deprecated method, use newStatefulSession() instead.
StatefulSessionpublic StatefulSession newStatefulSession()
This method is a shorthand for newKnowledge().newStatefulSession() which
returns an empty session instance.
StatefulSessionpublic StatelessSession newStatelessSession()
This method is a shorthand for newKnowledge().newStatelessSession() which
returns an empty session instance.
StatelessSessionCopyright © 2021. All rights reserved.