myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gpetra...@apache.org
Subject svn commit: r1296801 - /myfaces/extensions/cdi/trunk/core/api/src/main/java/org/apache/myfaces/extensions/cdi/core/api/provider/BeanManagerProvider.java
Date Sun, 04 Mar 2012 13:09:52 GMT
Author: gpetracek
Date: Sun Mar  4 13:09:51 2012
New Revision: 1296801

URL: http://svn.apache.org/viewvc?rev=1296801&view=rev
Log:
EXTCDI-271 root-bean-manager support

Modified:
    myfaces/extensions/cdi/trunk/core/api/src/main/java/org/apache/myfaces/extensions/cdi/core/api/provider/BeanManagerProvider.java

Modified: myfaces/extensions/cdi/trunk/core/api/src/main/java/org/apache/myfaces/extensions/cdi/core/api/provider/BeanManagerProvider.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/cdi/trunk/core/api/src/main/java/org/apache/myfaces/extensions/cdi/core/api/provider/BeanManagerProvider.java?rev=1296801&r1=1296800&r2=1296801&view=diff
==============================================================================
--- myfaces/extensions/cdi/trunk/core/api/src/main/java/org/apache/myfaces/extensions/cdi/core/api/provider/BeanManagerProvider.java
(original)
+++ myfaces/extensions/cdi/trunk/core/api/src/main/java/org/apache/myfaces/extensions/cdi/core/api/provider/BeanManagerProvider.java
Sun Mar  4 13:09:51 2012
@@ -129,6 +129,12 @@ public class BeanManagerProvider impleme
             }
         }
 
+        if (result == null)
+        {
+            throw new IllegalStateException("Unable to find BeanManager. " +
+                    "Please ensure that you configured the CDI implementation of your choice
properly.");
+        }
+
         return result;
     }
 



Mime
View raw message