|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CompositeKnowledgeBuilder
A KnowledgeBuilder with a fluent interface allowing to add multiple Resources at the same time, without worrying about cross dependencies among them.
Method Summary | |
---|---|
CompositeKnowledgeBuilder |
add(Resource resource)
Add a resource of the given ResourceType, using the default type and resource configuration. |
CompositeKnowledgeBuilder |
add(Resource resource,
ResourceType type)
Add a resource of the given ResourceType, using the default resource configuration. |
CompositeKnowledgeBuilder |
add(Resource resource,
ResourceType type,
ResourceConfiguration configuration)
Add a resource of the given ResourceType, using the provided ResourceConfiguration. |
void |
build()
Build all the Resources added during this batch |
CompositeKnowledgeBuilder |
type(ResourceType type)
Set the default resource type of all the subsequently added Resources. |
Method Detail |
---|
CompositeKnowledgeBuilder type(ResourceType type)
type
- the resource type
CompositeKnowledgeBuilder add(Resource resource)
resource
- the Resource to add
CompositeKnowledgeBuilder add(Resource resource, ResourceType type)
resource
- the Resource to addtype
- the resource type
CompositeKnowledgeBuilder add(Resource resource, ResourceType type, ResourceConfiguration configuration)
resource
- the Resource to addtype
- the resource typeconfiguration
- the resource configuration
void build()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |