public interface DSLKnowledgeProvider
| Modifier and Type | Method and Description |
|---|---|
default void |
apply(RuntimeContext<?> targetContext,
InputStream... inputStreams)
Deprecated.
|
default void |
apply(RuntimeContext<?> targetContext,
Reader... readers)
Deprecated.
|
default void |
apply(RuntimeContext<?> targetContext,
URL... resources)
Deprecated.
|
Knowledge |
create(KnowledgeService service,
InputStream... streams) |
default Knowledge |
create(KnowledgeService service,
Reader... streams) |
Knowledge |
create(KnowledgeService service,
URL... resources)
Given the sources' URLs, the DSL implementation must return a new Knowledge instance.
|
String |
getName() |
String getName()
Knowledge create(KnowledgeService service, URL... resources) throws IOException
Given the sources' URLs, the DSL implementation must return a new Knowledge instance. Depending on the DSL implementation, URLs may refer to plain text resources, Java classes/archives, JDBC connection strings, files, etc.
resources - remote or local resources to applyservice - Knowledge service.IOExceptionKnowledge create(KnowledgeService service, InputStream... streams) throws IOException
streams - remote or local resources to applyservice - Knowledge service.IOExceptioncreate(KnowledgeService, URL...)default Knowledge create(KnowledgeService service, Reader... streams) throws IOException
streams - remote or local resources to applyservice - Knowledge service.IOException - if resources can not be readUnsupportedOperationException - if this method is not supported by the implementationcreate(KnowledgeService, URL...)@Deprecated default void apply(RuntimeContext<?> targetContext, URL... resources) throws IOException
Given the sources' URLs, the DSL implementation must compile and append rules to the provided context.
targetContext - the runtime to append rules toresources - remote or local resources to applyIOException@Deprecated default void apply(RuntimeContext<?> targetContext, InputStream... inputStreams) throws IOException
Given the input stream, the DSL implementation must compile and append rules to the provided context.
targetContext - the runtime to append rules toinputStreams - input streams to ruleset sourcesIOException@Deprecated default void apply(RuntimeContext<?> targetContext, Reader... readers) throws IOException
targetContext - the runtime to append rules toreaders - readers of ruleset sourcesIOExceptionapply(RuntimeContext, InputStream...)Copyright © 2021. All rights reserved.