geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xuhaih...@apache.org
Subject svn commit: r1024530 - /geronimo/specs/trunk/geronimo-el_2.2_spec/src/main/java/javax/el/CompositeELResolver.java
Date Wed, 20 Oct 2010 05:53:12 GMT
Author: xuhaihong
Date: Wed Oct 20 05:53:12 2010
New Revision: 1024530

URL: http://svn.apache.org/viewvc?rev=1024530&view=rev
Log:
GERONIMO-5657 Use cached ExpressionFactory in CompositeELResolver (Patch from Martin Kočí)

Modified:
    geronimo/specs/trunk/geronimo-el_2.2_spec/src/main/java/javax/el/CompositeELResolver.java

Modified: geronimo/specs/trunk/geronimo-el_2.2_spec/src/main/java/javax/el/CompositeELResolver.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-el_2.2_spec/src/main/java/javax/el/CompositeELResolver.java?rev=1024530&r1=1024529&r2=1024530&view=diff
==============================================================================
--- geronimo/specs/trunk/geronimo-el_2.2_spec/src/main/java/javax/el/CompositeELResolver.java
(original)
+++ geronimo/specs/trunk/geronimo-el_2.2_spec/src/main/java/javax/el/CompositeELResolver.java
Wed Oct 20 05:53:12 2010
@@ -26,12 +26,9 @@ public class CompositeELResolver extends
 
 	private ELResolver[] resolvers;
 
-    private ExpressionFactory expressionFactory;
-
 	public CompositeELResolver() {
 		this.size = 0;
 		this.resolvers = new ELResolver[2];
-		expressionFactory = ExpressionFactory.newInstance();
 	}
 
 	synchronized public void add(ELResolver elResolver) {
@@ -221,7 +218,7 @@ public class CompositeELResolver extends
         }
         context.setPropertyResolved(false);
         if (context.getContext(ExpressionFactory.class) == null) {
-            context.putContext(ExpressionFactory.class, ExpressionFactory.newInstance());
+            context.putContext(ExpressionFactory.class, expressionFactory);
         }
         Object retValue = null;
         for (ELResolver resolver : resolvers) {



Mime
View raw message