openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r966927 - /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/el/WebBeansELResolver.java
Date Fri, 23 Jul 2010 01:30:54 GMT
Author: struberg
Date: Fri Jul 23 01:30:54 2010
New Revision: 966927

URL: http://svn.apache.org/viewvc?rev=966927&view=rev
Log:
OWB-419 improve EL performance

Modified:
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/el/WebBeansELResolver.java

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/el/WebBeansELResolver.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/el/WebBeansELResolver.java?rev=966927&r1=966926&r2=966927&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/el/WebBeansELResolver.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/el/WebBeansELResolver.java
Fri Jul 23 01:30:54 2010
@@ -101,15 +101,14 @@ public class WebBeansELResolver extends 
         //Creational context for creating instance
         CreationalContext<Object> creationalContext = null;
         
-        //Local store, create if not exist
-        ELContextStore store = ELContextStore.getInstance(true);
-
-        //Manager instance
-        BeanManagerImpl manager = store.getBeanManager();
-
-
         if (obj == null)
         {                      
+            //Local store, create if not exist
+            ELContextStore store = ELContextStore.getInstance(true);
+
+            //Manager instance
+            BeanManagerImpl manager = store.getBeanManager();
+
             //Name of the bean
             String name = (String) property;
             //Get beans



Mime
View raw message