Package org.evrete.api.spi
Interface DSLKnowledgeProvider
-
public interface DSLKnowledgeProvider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Knowledgecreate(KnowledgeService service, File... files)default Knowledgecreate(KnowledgeService service, InputStream... streams)default Knowledgecreate(KnowledgeService service, Reader... streams)default Knowledgecreate(KnowledgeService service, URL... resources)default Knowledgecreate(KnowledgeService service, TypeResolver resolver, File... files)Knowledgecreate(KnowledgeService service, TypeResolver typeResolver, InputStream... streams)default Knowledgecreate(KnowledgeService service, TypeResolver typeResolver, Reader... streams)default Knowledgecreate(KnowledgeService service, TypeResolver typeResolver, URL... resources)Given the sources' URLs, the DSL implementation must return a new Knowledge instance.StringgetName()
-
-
-
Method Detail
-
getName
String getName()
-
create
default Knowledge create(KnowledgeService service, URL... resources) throws IOException
- Throws:
IOException
-
create
default Knowledge create(KnowledgeService service, TypeResolver typeResolver, 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.
- Parameters:
resources- remote or local resources to applytypeResolver- TypeResolver to use.service- Knowledge service.- Throws:
IOException
-
create
default Knowledge create(KnowledgeService service, InputStream... streams) throws IOException
- Parameters:
streams- remote or local resources to applyservice- Knowledge service.- Throws:
IOException- See Also:
create(KnowledgeService, URL...)
-
create
default Knowledge create(KnowledgeService service, TypeResolver resolver, File... files) throws IOException
- Parameters:
files- file resourcesservice- Knowledge service.resolver- Type resolver- Throws:
IOException- See Also:
create(KnowledgeService, URL...)
-
create
default Knowledge create(KnowledgeService service, File... files) throws IOException
- Parameters:
files- file resourcesservice- Knowledge service.- Throws:
IOException- See Also:
create(KnowledgeService, URL...)
-
create
Knowledge create(KnowledgeService service, TypeResolver typeResolver, InputStream... streams) throws IOException
- Parameters:
streams- remote or local resources to applyservice- Knowledge service.typeResolver- TypeResolver to use.- Throws:
IOException- See Also:
create(KnowledgeService, TypeResolver, URL...)
-
create
default Knowledge create(KnowledgeService service, Reader... streams) throws IOException
- Parameters:
streams- remote or local resources to applyservice- Knowledge service.- Throws:
IOException- if resources can not be readUnsupportedOperationException- if this method is not supported by the implementation- See Also:
create(KnowledgeService, URL...)
-
create
default Knowledge create(KnowledgeService service, TypeResolver typeResolver, Reader... streams) throws IOException
- Parameters:
streams- remote or local resources to applyservice- Knowledge service.typeResolver- TypeResolver to use.- Throws:
IOException- if resources can not be readUnsupportedOperationException- if this method is not supported by the implementation- See Also:
create(KnowledgeService, URL...)
-
-