|
KIE Internal 6.0.0.Beta1 | |||||||||
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(org.kie.api.io.Resource resource)
Add a resource of the given ResourceType, using the default type and resource configuration. |
CompositeKnowledgeBuilder |
add(org.kie.api.io.Resource resource,
org.kie.api.io.ResourceType type)
Add a resource of the given ResourceType, using the default resource configuration. |
CompositeKnowledgeBuilder |
add(org.kie.api.io.Resource resource,
org.kie.api.io.ResourceType type,
org.kie.api.io.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(org.kie.api.io.ResourceType type)
Set the default resource type of all the subsequently added Resources. |
Method Detail |
---|
CompositeKnowledgeBuilder type(org.kie.api.io.ResourceType type)
type
- the resource type
CompositeKnowledgeBuilder add(org.kie.api.io.Resource resource)
resource
- the Resource to add
CompositeKnowledgeBuilder add(org.kie.api.io.Resource resource, org.kie.api.io.ResourceType type)
resource
- the Resource to addtype
- the resource type
CompositeKnowledgeBuilder add(org.kie.api.io.Resource resource, org.kie.api.io.ResourceType type, org.kie.api.io.ResourceConfiguration configuration)
resource
- the Resource to addtype
- the resource typeconfiguration
- the resource configuration
void build()
|
KIE Internal 6.0.0.Beta1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |