[jboss-svn-commits] JBL Code SVN: r25910 - labs/jbossrules/trunk/drools-api/src/main/java/org/drools/agent.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Thu Apr 2 03:44:01 EDT 2009


Author: mark.proctor at jboss.com
Date: 2009-04-02 03:43:59 -0400 (Thu, 02 Apr 2009)
New Revision: 25910

Modified:
   labs/jbossrules/trunk/drools-api/src/main/java/org/drools/agent/KnowledgeAgentFactory.java
Log:
-javadoc additions

Modified: labs/jbossrules/trunk/drools-api/src/main/java/org/drools/agent/KnowledgeAgentFactory.java
===================================================================
--- labs/jbossrules/trunk/drools-api/src/main/java/org/drools/agent/KnowledgeAgentFactory.java	2009-04-02 04:32:49 UTC (rev 25909)
+++ labs/jbossrules/trunk/drools-api/src/main/java/org/drools/agent/KnowledgeAgentFactory.java	2009-04-02 07:43:59 UTC (rev 25910)
@@ -5,6 +5,7 @@
 import org.drools.KnowledgeBase;
 import org.drools.KnowledgeBaseFactory;
 import org.drools.ProviderInitializationException;
+import org.drools.io.ResourceFactory;
 
 /**
  * <p>
@@ -58,11 +59,22 @@
  * for this property.
  * </p>
  * 
+ * <p>
  * KnowledgeAgents can take a empty KnowledgeBase or a populated one. If a populated KnowledgeBase is provided, the KnowledgeAgent
  * will iterate KnowledgeBase and subscribe to the Resource that it finds. While it is possible for the KnowledgeBuilder to build
  * all resources found in a directory, that information is lost by the KnowledgeBuilder so those directories will not be continuously scanned.
  * Only directories specified as part of the applyChangeSet(Resource) method are monitored.
+ * </p>
  * 
+ * <p>
+ * Resource scanning is not on by default, it's a service and must be started, the same is for notification. This can be done via the ResourceFactory
+ * </p>
+ * 
+ * <pre>
+ * ResourceFactory.getResourceChangeNotifierService().start();
+ * ResourceFactory.getResourceChangeScannerService().start();
+ * </pre>
+ * 
  * @see org.drools.agent.KnowledgeAgent
  * @see org.drools.agent.KnowledgeAgentConfiguration
  * 




More information about the jboss-svn-commits mailing list