[jbpm-commits] JBoss JBPM SVN: r3238 - in jbpm3/trunk/modules/integration/spec/src/main: java/org/jbpm/integration/spec/service and 1 other directories.

do-not-reply at jboss.org do-not-reply at jboss.org
Fri Dec 5 12:58:45 EST 2008


Author: thomas.diesler at jboss.com
Date: 2008-12-05 12:58:45 -0500 (Fri, 05 Dec 2008)
New Revision: 3238

Added:
   jbpm3/trunk/modules/integration/spec/src/main/java/org/jbpm/integration/spec/service/ProcessEngineImpl.java
Removed:
   jbpm3/trunk/modules/integration/spec/src/main/java/org/jbpm/integration/spec/client/ProcessEngineImpl.java
Modified:
   jbpm3/trunk/modules/integration/spec/src/main/java/org/jbpm/integration/spec/service/ExecutionContextServiceImpl.java
   jbpm3/trunk/modules/integration/spec/src/main/java/org/jbpm/integration/spec/service/IdentityServiceImpl.java
   jbpm3/trunk/modules/integration/spec/src/main/resources/jbpm-cfg-beans.xml
Log:
Move ProcessEngineImpl to service

Deleted: jbpm3/trunk/modules/integration/spec/src/main/java/org/jbpm/integration/spec/client/ProcessEngineImpl.java
===================================================================
--- jbpm3/trunk/modules/integration/spec/src/main/java/org/jbpm/integration/spec/client/ProcessEngineImpl.java	2008-12-05 17:53:02 UTC (rev 3237)
+++ jbpm3/trunk/modules/integration/spec/src/main/java/org/jbpm/integration/spec/client/ProcessEngineImpl.java	2008-12-05 17:58:45 UTC (rev 3238)
@@ -1,66 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jbpm.integration.spec.client;
-
-//$Id$
-
-import java.util.Set;
-
-import org.jboss.bpm.api.service.ProcessEngine;
-import org.jboss.bpm.api.service.Service;
-import org.jbpm.JbpmConfiguration;
-import org.jbpm.integration.spec.service.MutableService;
-
-/**
- * A process engine with public access
- * 
- * @author thomas.diesler at jboss.com
- * @since 18-Jun-2008
- */
-public class ProcessEngineImpl extends ProcessEngine
-{
-  private JbpmConfiguration jbpmConfig;
-
-  public void setServices(Set<Service> services)
-  {
-    this.services = services;
-
-    // Set this engine on every mutable service
-    for (Service service : services)
-    {
-      if (service instanceof MutableService)
-      {
-        MutableService mutService = (MutableService)service;
-        mutService.setProcessEngine(this);
-      }
-    }
-  }
-
-  public JbpmConfiguration getJbpmConfiguration()
-  {
-    if (jbpmConfig == null)
-    {
-      jbpmConfig = JbpmConfiguration.getInstance();
-    }
-    return jbpmConfig;
-  }
-}

Modified: jbpm3/trunk/modules/integration/spec/src/main/java/org/jbpm/integration/spec/service/ExecutionContextServiceImpl.java
===================================================================
--- jbpm3/trunk/modules/integration/spec/src/main/java/org/jbpm/integration/spec/service/ExecutionContextServiceImpl.java	2008-12-05 17:53:02 UTC (rev 3237)
+++ jbpm3/trunk/modules/integration/spec/src/main/java/org/jbpm/integration/spec/service/ExecutionContextServiceImpl.java	2008-12-05 17:58:45 UTC (rev 3238)
@@ -28,7 +28,6 @@
 import org.jboss.bpm.api.service.ProcessEngine;
 import org.jboss.bpm.api.service.internal.AbstractExecutionContextService;
 import org.jbpm.JbpmContext;
-import org.jbpm.integration.spec.client.ProcessEngineImpl;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 

Modified: jbpm3/trunk/modules/integration/spec/src/main/java/org/jbpm/integration/spec/service/IdentityServiceImpl.java
===================================================================
--- jbpm3/trunk/modules/integration/spec/src/main/java/org/jbpm/integration/spec/service/IdentityServiceImpl.java	2008-12-05 17:53:02 UTC (rev 3237)
+++ jbpm3/trunk/modules/integration/spec/src/main/java/org/jbpm/integration/spec/service/IdentityServiceImpl.java	2008-12-05 17:58:45 UTC (rev 3238)
@@ -35,7 +35,6 @@
 import org.jbpm.identity.Group;
 import org.jbpm.identity.User;
 import org.jbpm.identity.hibernate.IdentitySession;
-import org.jbpm.integration.spec.client.ProcessEngineImpl;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 

Copied: jbpm3/trunk/modules/integration/spec/src/main/java/org/jbpm/integration/spec/service/ProcessEngineImpl.java (from rev 3236, jbpm3/trunk/modules/integration/spec/src/main/java/org/jbpm/integration/spec/client/ProcessEngineImpl.java)
===================================================================
--- jbpm3/trunk/modules/integration/spec/src/main/java/org/jbpm/integration/spec/service/ProcessEngineImpl.java	                        (rev 0)
+++ jbpm3/trunk/modules/integration/spec/src/main/java/org/jbpm/integration/spec/service/ProcessEngineImpl.java	2008-12-05 17:58:45 UTC (rev 3238)
@@ -0,0 +1,65 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jbpm.integration.spec.service;
+
+//$Id$
+
+import java.util.Set;
+
+import org.jboss.bpm.api.service.ProcessEngine;
+import org.jboss.bpm.api.service.Service;
+import org.jbpm.JbpmConfiguration;
+
+/**
+ * A process engine with public access
+ * 
+ * @author thomas.diesler at jboss.com
+ * @since 18-Jun-2008
+ */
+public class ProcessEngineImpl extends ProcessEngine
+{
+  private JbpmConfiguration jbpmConfig;
+
+  public void setServices(Set<Service> services)
+  {
+    this.services = services;
+
+    // Set this engine on every mutable service
+    for (Service service : services)
+    {
+      if (service instanceof MutableService)
+      {
+        MutableService mutService = (MutableService)service;
+        mutService.setProcessEngine(this);
+      }
+    }
+  }
+
+  public JbpmConfiguration getJbpmConfiguration()
+  {
+    if (jbpmConfig == null)
+    {
+      jbpmConfig = JbpmConfiguration.getInstance();
+    }
+    return jbpmConfig;
+  }
+}

Modified: jbpm3/trunk/modules/integration/spec/src/main/resources/jbpm-cfg-beans.xml
===================================================================
--- jbpm3/trunk/modules/integration/spec/src/main/resources/jbpm-cfg-beans.xml	2008-12-05 17:53:02 UTC (rev 3237)
+++ jbpm3/trunk/modules/integration/spec/src/main/resources/jbpm-cfg-beans.xml	2008-12-05 17:58:45 UTC (rev 3238)
@@ -10,7 +10,7 @@
  </bean>
 
  <!-- The ProcessEngine -->
- <bean name="BPMProcessEngine" class="org.jbpm.integration.spec.client.ProcessEngineImpl">
+ <bean name="BPMProcessEngine" class="org.jbpm.integration.spec.service.ProcessEngineImpl">
   <property name="services">
    <set elementClass="org.jboss.bpm.api.service.Service">
     <inject bean="BPMDeploymentService"/>




More information about the jbpm-commits mailing list