You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwebbeans.apache.org by ge...@apache.org on 2009/05/10 00:32:28 UTC

svn commit: r773276 - /incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/WebBeansContainerDeployer.java

Author: gerdogdu
Date: Sat May  9 22:32:27 2009
New Revision: 773276

URL: http://svn.apache.org/viewvc?rev=773276&view=rev
Log:
Remove double configuration for decorators and interceptors.

Modified:
    incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/WebBeansContainerDeployer.java

Modified: incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/WebBeansContainerDeployer.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/WebBeansContainerDeployer.java?rev=773276&r1=773275&r2=773276&view=diff
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/WebBeansContainerDeployer.java (original)
+++ incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/WebBeansContainerDeployer.java Sat May  9 22:32:27 2009
@@ -232,6 +232,13 @@
                 String componentClassName = itPathClasses.next();
                 Class<?> implClass = ClassUtil.getClassFromName(componentClassName);
 
+                //It must not be @Interceptor or @Decorator
+                if(AnnotationUtil.isAnnotationExistOnClass(implClass, Decorator.class) ||
+                        AnnotationUtil.isAnnotationExistOnClass(implClass, Interceptor.class))
+                {
+                    continue;
+                }
+                
                 if (SimpleWebBeansConfigurator.isSimpleWebBean(implClass))
                 {
                     logger.info("Simple WebBeans Component with class name : " + componentClassName + " is found");