[jbpm-commits] JBoss JBPM SVN: r3070 - projects/spec/trunk/modules/api/src/main/java/org/jbpm/api/client/internal.

do-not-reply at jboss.org do-not-reply at jboss.org
Tue Nov 25 04:50:36 EST 2008


Author: thomas.diesler at jboss.com
Date: 2008-11-25 04:50:34 -0500 (Tue, 25 Nov 2008)
New Revision: 3070

Modified:
   projects/spec/trunk/modules/api/src/main/java/org/jbpm/api/client/internal/MicrocontainerConfigurationProvider.java
Log:
Decouple from default jbpm-cfg-beans.xml

Modified: projects/spec/trunk/modules/api/src/main/java/org/jbpm/api/client/internal/MicrocontainerConfigurationProvider.java
===================================================================
--- projects/spec/trunk/modules/api/src/main/java/org/jbpm/api/client/internal/MicrocontainerConfigurationProvider.java	2008-11-25 09:27:22 UTC (rev 3069)
+++ projects/spec/trunk/modules/api/src/main/java/org/jbpm/api/client/internal/MicrocontainerConfigurationProvider.java	2008-11-25 09:50:34 UTC (rev 3070)
@@ -51,8 +51,13 @@
   {
     if (engine == null)
     {
-      URL cfgURL = getDefaultConfigURL();
-      engine = getProcessEngine(cfgURL);
+      Kernel kernel = KernelLocator.getKernel();
+      if (kernel == null)
+      {
+        EmbeddedBeansDeployer deployer = new EmbeddedBeansDeployer();
+        deployer.deploy(getDefaultConfigURL());
+      }
+      engine = getProcessEngineBean();
     }
     return engine;
   }
@@ -60,13 +65,7 @@
   @Override
   public ProcessEngine getProcessEngine(URL cfgURL)
   {
-    Kernel kernel = KernelLocator.getKernel();
-    if (kernel == null)
-    {
-      EmbeddedBeansDeployer deployer = new EmbeddedBeansDeployer();
-      deployer.deploy(cfgURL);
-    }
-    return getProcessEngineBean();
+    throw new NotImplementedException();
   }
 
   @Override




More information about the jbpm-commits mailing list