openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bergm...@apache.org
Subject svn commit: r915465 - in /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/decorator: DecoratorUtil.java WebBeansDecorator.java
Date Tue, 23 Feb 2010 18:21:38 GMT
Author: bergmark
Date: Tue Feb 23 18:21:38 2010
New Revision: 915465

URL: http://svn.apache.org/viewvc?rev=915465&view=rev
Log:
[OWB-297] Remove hard requirement that delegate injection point must be an interface.

Modified:
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/decorator/DecoratorUtil.java
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/decorator/WebBeansDecorator.java

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/decorator/DecoratorUtil.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/decorator/DecoratorUtil.java?rev=915465&r1=915464&r2=915465&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/decorator/DecoratorUtil.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/decorator/DecoratorUtil.java
Tue Feb 23 18:21:38 2010
@@ -125,10 +125,6 @@
                 else
                 {
                     Class<?> fieldType = field.getType();
-                    if (!ClassUtil.isInterface(fieldType.getModifiers()))
-                    {
-                        throw new WebBeansConfigurationException("Decorator class : " + decoratorClazz.getName()
+ " delegate attribute type must be interface");
-                    }
 
                     for (Type decType : decoratorSet)
                     {

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/decorator/WebBeansDecorator.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/decorator/WebBeansDecorator.java?rev=915465&r1=915464&r2=915465&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/decorator/WebBeansDecorator.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/decorator/WebBeansDecorator.java
Tue Feb 23 18:21:38 2010
@@ -174,10 +174,6 @@
         }
         
         Type fieldType = this.delegateField.getGenericType();
-        if (!ClassUtil.isInterface(ClassUtil.getClazz(fieldType).getModifiers()))
-        {
-            throw new WebBeansConfigurationException("Decorator bean : " + toString() + "
delegate attribute type must be interface");
-        }
 
         for (Type decType : this.decoratedTypes)
         {



Mime
View raw message