[jboss-svn-commits] JBL Code SVN: r24960 - 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
Tue Jan 27 18:41:57 EST 2009
Author: mark.proctor at jboss.com
Date: 2009-01-27 18:41:57 -0500 (Tue, 27 Jan 2009)
New Revision: 24960
Modified:
labs/jbossrules/trunk/drools-api/src/main/java/org/drools/agent/KnowledgeAgentConfiguration.java
labs/jbossrules/trunk/drools-api/src/main/java/org/drools/agent/KnowledgeAgentFactory.java
Log:
-added convenience methods
-fixed javadocs layout
Modified: labs/jbossrules/trunk/drools-api/src/main/java/org/drools/agent/KnowledgeAgentConfiguration.java
===================================================================
--- labs/jbossrules/trunk/drools-api/src/main/java/org/drools/agent/KnowledgeAgentConfiguration.java 2009-01-27 22:57:39 UTC (rev 24959)
+++ labs/jbossrules/trunk/drools-api/src/main/java/org/drools/agent/KnowledgeAgentConfiguration.java 2009-01-27 23:41:57 UTC (rev 24960)
@@ -3,11 +3,12 @@
import org.drools.PropertiesConfiguration;
/**
- * drools.agent.scanResources = <true|false>
- * drools.agent.scanDirectories = <true|false>
- * drools.agent.newInstance = <true|false> // currently this is hard coded to true
- * drools.agent.monitorChangeSetEvents = <true|false>
- *
+ * <p>
+ * drools.agent.scanResources = <true|false><br/>
+ * drools.agent.scanDirectories = <true|false><br/>
+ * drools.agent.newInstance = <true|false> // currently this is hard coded to true<br/>
+ * drools.agent.monitorChangeSetEvents = <true|false><br/>
+ * </p>
* @see org.drools.agent.KnowledgeAgent
* @see org.drools.agent.KnowledgeAgentConfiguration
*/
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-01-27 22:57:39 UTC (rev 24959)
+++ labs/jbossrules/trunk/drools-api/src/main/java/org/drools/agent/KnowledgeAgentFactory.java 2009-01-27 23:41:57 UTC (rev 24960)
@@ -3,6 +3,7 @@
import java.util.Properties;
import org.drools.KnowledgeBase;
+import org.drools.KnowledgeBaseFactory;
import org.drools.ProviderInitializationException;
/**
@@ -60,6 +61,11 @@
public static KnowledgeAgentConfiguration newKnowledgeAgentConfiguration(Properties properties) {
return getKnowledgeAgentProvider().newKnowledgeAgentConfiguration( properties );
}
+
+ public static KnowledgeAgent newKnowledgeAgent(String name) {
+ return getKnowledgeAgentProvider().newKnowledgeAgent( name,
+ KnowledgeBaseFactory.newKnowledgeBase() );
+ }
public static KnowledgeAgent newKnowledgeAgent(String name,
KnowledgeBase kbase) {
@@ -68,6 +74,13 @@
}
public static KnowledgeAgent newKnowledgeAgent(String name,
+ KnowledgeAgentConfiguration configuration) {
+ return getKnowledgeAgentProvider().newKnowledgeAgent( name,
+ KnowledgeBaseFactory.newKnowledgeBase(),
+ configuration );
+ }
+
+ public static KnowledgeAgent newKnowledgeAgent(String name,
KnowledgeBase kbase,
KnowledgeAgentConfiguration configuration) {
return getKnowledgeAgentProvider().newKnowledgeAgent( name,
More information about the jboss-svn-commits
mailing list