public interface CompositeKnowledgeBuilder
Modifier and Type | Method and Description |
---|---|
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.
|
CompositeKnowledgeBuilder type(ResourceType type)
type
- the resource typeCompositeKnowledgeBuilder add(Resource resource)
resource
- the Resource to addCompositeKnowledgeBuilder add(Resource resource, ResourceType type)
resource
- the Resource to addtype
- the resource typeCompositeKnowledgeBuilder add(Resource resource, ResourceType type, ResourceConfiguration configuration)
resource
- the Resource to addtype
- the resource typeconfiguration
- the resource configurationvoid build()
Copyright © 2001–2016 JBoss by Red Hat. All rights reserved.