[jboss-svn-commits] JBL Code SVN: r24273 - labs/jbossrules/trunk/drools-api/src/main/java.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Sun Dec 7 00:14:32 EST 2008
Author: mark.proctor at jboss.com
Date: 2008-12-07 00:14:31 -0500 (Sun, 07 Dec 2008)
New Revision: 24273
Modified:
labs/jbossrules/trunk/drools-api/src/main/java/overview.html
Log:
JBRULES-1874 Create Resource Framework
-fixed javadocs from addResource to add
Modified: labs/jbossrules/trunk/drools-api/src/main/java/overview.html
===================================================================
--- labs/jbossrules/trunk/drools-api/src/main/java/overview.html 2008-12-07 05:12:08 UTC (rev 24272)
+++ labs/jbossrules/trunk/drools-api/src/main/java/overview.html 2008-12-07 05:14:31 UTC (rev 24273)
@@ -30,7 +30,7 @@
A Typical example to load a rule resource.
<pre>
KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
-kbuilder.addResource( ResourceFactory.newUrlResource( url ),
+kbuilder.add( ResourceFactory.newUrlResource( url ),
ResourceType.DRL );
if ( kbuilder.hasErrors() ) {
System.err.println( builder.getErrors().toString() );
@@ -51,7 +51,7 @@
A Typical example to load a process resource. Notice the ResourceType is changed, in accordance with the Resource type.
<pre>
KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
-kbuilder.addResource( ResourceFactory.newUrlResource( url ),
+kbuilder.add( ResourceFactory.newUrlResource( url ),
ResourceType.DRF );
if ( kbuilder.hasErrors() ) {
System.err.println( builder.getErrors().toString() );
More information about the jboss-svn-commits
mailing list