Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.drools;
 
This class wraps the definition of a named KnowledgeBase defined in a KnowledgeJar allowing to instance it and create new StatefulKnowledgeSession from it
public interface KBaseUnit {

    
Return the name of the KnowledgeBase wrapped by this KBaseUnit

Returns:
    String getKBaseName();

    
Lazily create and return the KnowledgeBase wrapped by this KBaseUnit

Returns:
The KnowledgeBase
    KnowledgeBase getKnowledgeBase();

    
If errors occurred during the build process they are added here

Returns:
    boolean hasErrors();

    
Return the errors that occurred during the build process of the KnowledgeBase wrapped by this KBaseUnit

Returns:
Instance a new StatefulKnowledgeSession identified by the gievn name from the KnowledgeBase wrapped by this KBaseUnit

Parameters:
kSessionName The name of the StatefulKnowledgeSession
Returns:
The StatefulKnowledgeSession
Instance a new StatelessKnowledgeSession identified by the gievn name from the KnowledgeBase wrapped by this KBaseUnit

Parameters:
kSessionName The name of the StatelessKnowledgeSession
Returns:
The StatelessKnowledgeSession
New to GrepCode? Check out our FAQ X