Knowledge API Legacy5 Adapter 6.0.0.Beta5

org.drools.impl.adapters
Class CompositeKnowledgeBuilderAdapter

java.lang.Object
  extended by org.drools.impl.adapters.CompositeKnowledgeBuilderAdapter
All Implemented Interfaces:
CompositeKnowledgeBuilder

public class CompositeKnowledgeBuilderAdapter
extends Object
implements CompositeKnowledgeBuilder


Constructor Summary
CompositeKnowledgeBuilderAdapter(org.kie.internal.builder.CompositeKnowledgeBuilder delegate)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeKnowledgeBuilderAdapter

public CompositeKnowledgeBuilderAdapter(org.kie.internal.builder.CompositeKnowledgeBuilder delegate)
Method Detail

type

public CompositeKnowledgeBuilder type(ResourceType type)
Description copied from interface: CompositeKnowledgeBuilder
Set the default resource type of all the subsequently added Resources.

Specified by:
type in interface CompositeKnowledgeBuilder
Parameters:
type - the resource type
Returns:

add

public CompositeKnowledgeBuilder add(Resource resource)
Description copied from interface: CompositeKnowledgeBuilder
Add a resource of the given ResourceType, using the default type and resource configuration.

Specified by:
add in interface CompositeKnowledgeBuilder
Parameters:
resource - the Resource to add
Returns:

add

public CompositeKnowledgeBuilder add(Resource resource,
                                     ResourceType type)
Description copied from interface: CompositeKnowledgeBuilder
Add a resource of the given ResourceType, using the default resource configuration.

Specified by:
add in interface CompositeKnowledgeBuilder
Parameters:
resource - the Resource to add
type - the resource type
Returns:

add

public CompositeKnowledgeBuilder add(Resource resource,
                                     ResourceType type,
                                     ResourceConfiguration configuration)
Description copied from interface: CompositeKnowledgeBuilder
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.

Specified by:
add in interface CompositeKnowledgeBuilder
Parameters:
resource - the Resource to add
type - the resource type
configuration - the resource configuration
Returns:

build

public void build()
Description copied from interface: CompositeKnowledgeBuilder
Build all the Resources added during this batch

Specified by:
build in interface CompositeKnowledgeBuilder

Knowledge API Legacy5 Adapter 6.0.0.Beta5

Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.