openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r1530644 - in /openwebbeans/trunk: webbeans-impl/src/main/java/org/apache/webbeans/util/WebBeansUtil.java webbeans-spi/src/main/java/org/apache/webbeans/spi/plugins/AbstractOwbPlugin.java
Date Wed, 09 Oct 2013 14:44:22 GMT
Author: struberg
Date: Wed Oct  9 14:44:22 2013
New Revision: 1530644

URL: http://svn.apache.org/r1530644
Log:
OWB-894 remove more old 'webbeans' spec restrictions which are obsolete + improve loggin

Modified:
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/WebBeansUtil.java
    openwebbeans/trunk/webbeans-spi/src/main/java/org/apache/webbeans/spi/plugins/AbstractOwbPlugin.java

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/WebBeansUtil.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/WebBeansUtil.java?rev=1530644&r1=1530643&r2=1530644&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/WebBeansUtil.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/WebBeansUtil.java
Wed Oct  9 14:44:22 2013
@@ -277,27 +277,14 @@ public final class WebBeansUtil
 
         if (!Modifier.isStatic(modifier) && ClassUtil.isInnerClazz(clazz))
         {
-            throw new WebBeansConfigurationException("Bean implementation class : "
-                                                     + clazz.getName() + " can not be non-static
inner class");
+            throw new WebBeansConfigurationException("Skipping CDI bean detection for non-static
inner class: "
+                                                     + clazz.getName() );
         }
 
         if(Extension.class.isAssignableFrom(clazz))
         {
-            throw new WebBeansConfigurationException("Bean implementation class can not implement
"
-                                                     + "javax.enterprise.inject.spi.Extension.!");
-        }
-
-        Class<?>[] interfaces = clazz.getInterfaces();
-        if(interfaces != null && interfaces.length > 0)
-        {
-            for(Class<?> intr : interfaces)
-            {
-                if(intr.getName().equals("javax.ejb.EnterpriseBean"))
-                {
-                    throw new WebBeansConfigurationException("Bean implementation class can
not implement "
-                                                             + "javax.ejb.EnterpriseBean");
-                }
-            }
+            throw new WebBeansConfigurationException("Skipping CDI bean detection for CDI
Extension class"
+                                                     + clazz.getName());
         }
 
         // and finally call all checks which are defined in plugins like JSF, JPA, etc

Modified: openwebbeans/trunk/webbeans-spi/src/main/java/org/apache/webbeans/spi/plugins/AbstractOwbPlugin.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-spi/src/main/java/org/apache/webbeans/spi/plugins/AbstractOwbPlugin.java?rev=1530644&r1=1530643&r2=1530644&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-spi/src/main/java/org/apache/webbeans/spi/plugins/AbstractOwbPlugin.java
(original)
+++ openwebbeans/trunk/webbeans-spi/src/main/java/org/apache/webbeans/spi/plugins/AbstractOwbPlugin.java
Wed Oct  9 14:44:22 2013
@@ -20,7 +20,7 @@ package org.apache.webbeans.spi.plugins;
 
 
 /**
- * Abstract imlpementation of the {@link OpenWebBeansPlugin} interface
+ * Abstract implementation of the {@link OpenWebBeansPlugin} interface
  * contract.
  * 
  *  <p>



Mime
View raw message