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: