svn commit: r921987 - /ofbiz/trunk/framework/birt/src/org/ofbiz/birt/container/BirtContainer.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r921987 - /ofbiz/trunk/framework/birt/src/org/ofbiz/birt/container/BirtContainer.java

doogie-3
Author: doogie
Date: Thu Mar 11 18:57:33 2010
New Revision: 921987

URL: http://svn.apache.org/viewvc?rev=921987&view=rev
Log:
Don't fetch the delegator with UtilObject, instead using
DelegatorFactory.

Modified:
    ofbiz/trunk/framework/birt/src/org/ofbiz/birt/container/BirtContainer.java

Modified: ofbiz/trunk/framework/birt/src/org/ofbiz/birt/container/BirtContainer.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/birt/src/org/ofbiz/birt/container/BirtContainer.java?rev=921987&r1=921986&r2=921987&view=diff
==============================================================================
--- ofbiz/trunk/framework/birt/src/org/ofbiz/birt/container/BirtContainer.java (original)
+++ ofbiz/trunk/framework/birt/src/org/ofbiz/birt/container/BirtContainer.java Thu Mar 11 18:57:33 2010
@@ -39,7 +39,6 @@ import org.ofbiz.base.container.Containe
 import org.ofbiz.base.util.Debug;
 import org.ofbiz.base.util.FileUtil;
 import org.ofbiz.base.util.UtilGenerics;
-import org.ofbiz.base.util.UtilObject;
 import org.ofbiz.base.util.UtilProperties;
 import org.ofbiz.entity.Delegator;
 import org.ofbiz.entity.DelegatorFactory;
@@ -99,11 +98,7 @@ public class BirtContainer implements Co
 
         // get the delegator
         delegatorName = ContainerConfig.getPropertyValue(cc, "delegator-name", "default");
-        try {
-              delegator = UtilObject.getObjectFromFactory(DelegatorFactory.class, delegatorName);
-        } catch (ClassNotFoundException e) {
-            Debug.logError(e, module);
-        }
+        delegator = DelegatorFactory.getDelegator(delegatorName);
 
         // get the dispatcher
         dispatcher = GenericDispatcher.getLocalDispatcher(dispatcherName, delegator);