[jboss-svn-commits] JBL Code SVN: r34178 - labs/jbossrules/trunk/drools-docs/drools-docs-guvnor/src/main/docbook/en-US/Chapter-Guvnor.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Mon Jul 26 07:52:06 EDT 2010


Author: ge0ffrey
Date: 2010-07-26 07:52:05 -0400 (Mon, 26 Jul 2010)
New Revision: 34178

Modified:
   labs/jbossrules/trunk/drools-docs/drools-docs-guvnor/src/main/docbook/en-US/Chapter-Guvnor/Section-UserGuide.xml
Log:
JBRULES-2587 code highlighting java for drools-guvnor

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-guvnor/src/main/docbook/en-US/Chapter-Guvnor/Section-UserGuide.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-guvnor/src/main/docbook/en-US/Chapter-Guvnor/Section-UserGuide.xml	2010-07-26 11:47:35 UTC (rev 34177)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-guvnor/src/main/docbook/en-US/Chapter-Guvnor/Section-UserGuide.xml	2010-07-26 11:52:05 UTC (rev 34178)
@@ -1064,7 +1064,7 @@
         Fact.field name as shown above), and the value is a java.util.List of
         Strings.</para>
 
-        <programlisting>
+        <programlisting role="JAVA">
 public class SampleDataSource2 {
 
   public Map&lt;String&gt;, List&lt;String&gt;&gt; loadData() {
@@ -1083,7 +1083,7 @@
 
         <para>And in the enumeration in the brms, you put:</para>
 
-        <programlisting>=(new SampleDataSource2()).loadData()
+        <programlisting role="JAVA">=(new SampleDataSource2()).loadData()
 </programlisting>
 
         <para>The "=" tells it to load the data by executing your code.</para>
@@ -1505,7 +1505,7 @@
     <para>These fact models can be used like normal fact objects, however the
     way you create them is different (as they are not on your applications
     classpath). To create these objects, they are available from the RuleBase
-    instance. <programlisting>
+    instance. <programlisting role="JAVA">
           // Retrieve the generated fact type
         FactType cheeseFact = ruleBase.getFactType( "org.drools.generatedbeans.Cheese" );
 
@@ -1775,7 +1775,7 @@
       If the change set specifies a resource that is a directory it's contents
       will be scanned for changes too.</para>
 
-      <programlisting>
+      <programlisting role="JAVA">
  KnowledgeAgent kagent = KnowledgeAgentFactory.newKnowledgeAgent( "MyAgent" );
  kagent.applyChangeSet( ResourceFactory.newUrlResource( url ) );
  KnowledgeBase kbase = kagent.getKnowledgeBase();
@@ -1786,7 +1786,7 @@
       "drools.agent.scanDirectories", by default any specified directories are
       scanned for new additions, it is possible to disable this.</para>
 
-      <programlisting>KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase();
+      <programlisting role="JAVA">KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase();
 
  KnowledgeAgentConfiguration kaconf = KnowledgeAgentFactory.newKnowledgeAgentConfiguration();
  kaconf.setProperty( "drools.agent.scanDirectories",
@@ -1810,7 +1810,7 @@
       started, the same is for notification. This can be done via the
       ResourceFactory.</para>
 
-      <programlisting>ResourceFactory.getResourceChangeNotifierService().start();
+      <programlisting role="JAVA">ResourceFactory.getResourceChangeNotifierService().start();
 ResourceFactory.getResourceChangeScannerService().start();</programlisting>
 
       <para>Following shows the deployment screen of Guvnor, which provides



More information about the jboss-svn-commits mailing list