[jbpm-commits] JBoss JBPM SVN: r5010 - in jbpm3/branches/jbpm-3.2.5-soa/modules/core/src/main: resources and 1 other directory.

do-not-reply at jboss.org do-not-reply at jboss.org
Tue Jun 9 11:25:46 EDT 2009


Author: alex.guizar at jboss.com
Date: 2009-06-09 11:25:46 -0400 (Tue, 09 Jun 2009)
New Revision: 5010

Modified:
   jbpm3/branches/jbpm-3.2.5-soa/modules/core/src/main/java/org/jbpm/web/JbpmConfigurationCloser.java
   jbpm3/branches/jbpm-3.2.5-soa/modules/core/src/main/java/org/jbpm/web/JobExecutorLauncher.java
   jbpm3/branches/jbpm-3.2.5-soa/modules/core/src/main/resources/hibernate.mapping.sybase.xml
Log:
cosmetic stuff

Modified: jbpm3/branches/jbpm-3.2.5-soa/modules/core/src/main/java/org/jbpm/web/JbpmConfigurationCloser.java
===================================================================
--- jbpm3/branches/jbpm-3.2.5-soa/modules/core/src/main/java/org/jbpm/web/JbpmConfigurationCloser.java	2009-06-09 15:18:38 UTC (rev 5009)
+++ jbpm3/branches/jbpm-3.2.5-soa/modules/core/src/main/java/org/jbpm/web/JbpmConfigurationCloser.java	2009-06-09 15:25:46 UTC (rev 5010)
@@ -27,9 +27,8 @@
 import org.jbpm.JbpmConfiguration;
 
 /**
- * Closes the jBPM configuration on servlet context destruction.
- * <h3>Configuration</h3>
- * Servlet context init parameters 
+ * Closes the jBPM configuration on servlet context destruction. <h3>Configuration</h3> Servlet
+ * context init parameters
  * <table border="1">
  * <tr>
  * <th>Name</th>
@@ -42,6 +41,7 @@
  * <td>jbpm.cfg.xml</td>
  * </tr>
  * </table>
+ * 
  * @author Alejandro Guizar
  */
 public class JbpmConfigurationCloser implements ServletContextListener {
@@ -49,9 +49,8 @@
   private JbpmConfiguration jbpmConfiguration;
 
   public void contextInitialized(ServletContextEvent event) {
-    String jbpmCfgResource = event.getServletContext().getInitParameter(
-        "jbpm.configuration.resource");
-    jbpmConfiguration = JbpmConfiguration.getInstance(jbpmCfgResource);
+    String resource = event.getServletContext().getInitParameter("jbpm.configuration.resource");
+    jbpmConfiguration = JbpmConfiguration.getInstance(resource);
   }
 
   public void contextDestroyed(ServletContextEvent event) {

Modified: jbpm3/branches/jbpm-3.2.5-soa/modules/core/src/main/java/org/jbpm/web/JobExecutorLauncher.java
===================================================================
--- jbpm3/branches/jbpm-3.2.5-soa/modules/core/src/main/java/org/jbpm/web/JobExecutorLauncher.java	2009-06-09 15:18:38 UTC (rev 5009)
+++ jbpm3/branches/jbpm-3.2.5-soa/modules/core/src/main/java/org/jbpm/web/JobExecutorLauncher.java	2009-06-09 15:25:46 UTC (rev 5010)
@@ -28,10 +28,10 @@
 import org.jbpm.job.executor.JobExecutor;
 
 /**
- * Starts the job executor on servlet context initialization and stops it on
- * servlet context destruction.
+ * Starts the job executor on servlet context initialization and stops it on servlet context
+ * destruction.
  * <h3>Configuration</h3>
- * Servlet context init parameters.
+ * Servlet context initialization parameters
  * <table border="1">
  * <tr>
  * <th>Name</th>
@@ -40,10 +40,11 @@
  * </tr>
  * <tr>
  * <td>jbpm.configuration.resource</td>
- * <td>name of the resource that defines the jBPM configuration</td>
+ * <td>classpath resource containing the jBPM configuration</td>
  * <td>jbpm.cfg.xml</td>
  * </tr>
  * </table>
+ * 
  * @author Alejandro Guizar
  */
 public class JobExecutorLauncher implements ServletContextListener {
@@ -51,17 +52,15 @@
   private JbpmConfiguration jbpmConfiguration;
 
   public void contextInitialized(ServletContextEvent event) {
-    String jbpmCfgResource = event.getServletContext().getInitParameter("jbpm.configuration.resource");
-    jbpmConfiguration = JbpmConfiguration.getInstance(jbpmCfgResource);
+    String resource = event.getServletContext().getInitParameter("jbpm.configuration.resource");
+    jbpmConfiguration = JbpmConfiguration.getInstance(resource);
     JobExecutor jobExecutor = jbpmConfiguration.getJobExecutor();
-    if (jobExecutor != null)
-      jobExecutor.start();
+    if (jobExecutor != null) jobExecutor.start();
   }
 
   public void contextDestroyed(ServletContextEvent event) {
     JobExecutor jobExecutor = jbpmConfiguration.getJobExecutor();
-    if (jobExecutor != null)
-      jobExecutor.stop();
+    if (jobExecutor != null) jobExecutor.stop();
   }
 
 }

Modified: jbpm3/branches/jbpm-3.2.5-soa/modules/core/src/main/resources/hibernate.mapping.sybase.xml
===================================================================
--- jbpm3/branches/jbpm-3.2.5-soa/modules/core/src/main/resources/hibernate.mapping.sybase.xml	2009-06-09 15:18:38 UTC (rev 5009)
+++ jbpm3/branches/jbpm-3.2.5-soa/modules/core/src/main/resources/hibernate.mapping.sybase.xml	2009-06-09 15:25:46 UTC (rev 5010)
@@ -91,7 +91,7 @@
     <mapping resource="org/jbpm/context/exe/variableinstance/DateInstance.hbm.xml"/>
     <mapping resource="org/jbpm/context/exe/variableinstance/DoubleInstance.hbm.xml"/>
     <mapping resource="org/jbpm/context/exe/variableinstance/HibernateLongInstance.hbm.xml"/>
-    <mapping resource="org/jbpm/context/exe/variableinstance/HibernateStringInstance.hbm.xml" />
+    <mapping resource="org/jbpm/context/exe/variableinstance/HibernateStringInstance.hbm.xml"/>
     <mapping resource="org/jbpm/context/exe/variableinstance/LongInstance.hbm.xml"/>
     <mapping resource="org/jbpm/context/exe/variableinstance/NullInstance.hbm.xml"/>
     <mapping resource="org/jbpm/context/exe/variableinstance/StringInstance.hbm.xml"/>




More information about the jbpm-commits mailing list