Rio Project 4.2 API Documentation
org.rioproject.gnostic
Class DroolsFactory
java.lang.Object
org.rioproject.gnostic.DroolsFactory
public class DroolsFactory
- extends Object
Utility for creating Drools KnowledgeAgents,
KnowledgeBases, and StatefulKnowledgeSessions
|
Method Summary |
static org.drools.agent.KnowledgeAgent |
createKnowledgeAgent(int scannerInterval)
Create a new KnowledgeAgent |
static org.drools.runtime.StatefulKnowledgeSession |
createStatefulSession(org.drools.KnowledgeBase kBase,
Map<org.drools.io.Resource,org.drools.builder.ResourceType> resources,
ClassLoader loader)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DroolsFactory
public DroolsFactory()
createKnowledgeAgent
public static org.drools.agent.KnowledgeAgent createKnowledgeAgent(int scannerInterval)
- Create a new
KnowledgeAgent
- Parameters:
scannerInterval - the interval the KnowledgeAgent should scan resources for change
- Returns:
- A KnowledgeAgent
createStatefulSession
public static org.drools.runtime.StatefulKnowledgeSession createStatefulSession(org.drools.KnowledgeBase kBase,
Map<org.drools.io.Resource,org.drools.builder.ResourceType> resources,
ClassLoader loader)
Copyright © 2006-2011 Rio Project. All Rights Reserved.