Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.drools.builder;
 
A KnowledgeBuilder with a fluent interface allowing to add multiple Resources at the same time, without worrying about cross dependencies among them.
 
 public interface CompositeKnowledgeBuilder {

    
Set the default resource type of all the subsequently added Resources.

Parameters:
type the resource type
Returns:
Add a resource of the given ResourceType, using the default type and resource configuration.

Parameters:
resource the Resource to add
Returns:
    CompositeKnowledgeBuilder add(Resource resource);
    
Add a resource of the given ResourceType, using the default resource configuration.

Parameters:
resource the Resource to add
type the resource type
Returns:
    CompositeKnowledgeBuilder add(Resource resourceResourceType type);

    
Add a resource of the given ResourceType, using the provided ResourceConfiguration. Resources can be created by calling any of the "newX" factory methods of ResourceFactory. The kind of resource (DRL, XDRL, DSL,... CHANGE_SET) must be indicated by the second argument.

Parameters:
resource the Resource to add
type the resource type
configuration the resource configuration
Returns:
    CompositeKnowledgeBuilder add(Resource resourceResourceType typeResourceConfiguration configuration);

    
Build all the Resources added during this batch
    void build();
New to GrepCode? Check out our FAQ X