openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r979829 - /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/context/ContextFactory.java
Date Tue, 27 Jul 2010 19:50:04 GMT
Author: struberg
Date: Tue Jul 27 19:50:03 2010
New Revision: 979829

URL: http://svn.apache.org/viewvc?rev=979829&view=rev
Log:
OWB-425 detecting the ContextService once is enough ...

Modified:
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/context/ContextFactory.java

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/context/ContextFactory.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/context/ContextFactory.java?rev=979829&r1=979828&r2=979829&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/context/ContextFactory.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/context/ContextFactory.java
Tue Jul 27 19:50:03 2010
@@ -211,8 +211,13 @@ public final class ContextFactory
      */
     public static Context getStandardContext(ContextTypes type) throws ContextNotActiveException
     {
-        Context context = null;
         ContextsService contextService = getContextsService();
+        return getStandardContext(contextService, type);
+    }
+
+    public static Context getStandardContext(ContextsService contextService, ContextTypes
type) throws ContextNotActiveException
+    {
+        Context context = null;
         switch (type.getCardinal())
         {
             case 0:



Mime
View raw message