openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject svn commit: r1647185 - /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/intercept/InterceptorsManager.java
Date Sun, 21 Dec 2014 18:10:13 GMT
Author: rmannibucau
Date: Sun Dec 21 18:10:13 2014
New Revision: 1647185

URL: http://svn.apache.org/r1647185
Log:
this cast breaks and is useless so removing it - allows ABD.addBean(myInterceptor) for instance

Modified:
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/intercept/InterceptorsManager.java

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/intercept/InterceptorsManager.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/intercept/InterceptorsManager.java?rev=1647185&r1=1647184&r2=1647185&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/intercept/InterceptorsManager.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/intercept/InterceptorsManager.java
Sun Dec 21 18:10:13 2014
@@ -34,10 +34,8 @@ import java.util.concurrent.CopyOnWriteA
 import javax.enterprise.inject.spi.AnnotatedType;
 import javax.enterprise.inject.spi.InterceptionType;
 import javax.enterprise.inject.spi.Interceptor;
-import javax.enterprise.inject.spi.PassivationCapable;
 
 import org.apache.webbeans.component.BeanAttributesImpl;
-import org.apache.webbeans.component.OwbBean;
 import org.apache.webbeans.component.creation.BeanAttributesBuilder;
 import org.apache.webbeans.component.creation.EjbInterceptorBeanBuilder;
 import org.apache.webbeans.config.WebBeansContext;
@@ -289,15 +287,7 @@ public class InterceptorsManager
     public void addCdiInterceptor(Interceptor interceptor)
     {
         cdiInterceptors.add(interceptor);
-        if (interceptor instanceof PassivationCapable)
-        {
-            OwbBean<?> owbBean = (OwbBean<?>)interceptor;
-            if(owbBean.isPassivationCapable())
-            {
-                beanManager.addPassivationInfo(interceptor);
-            }
-
-        }
+        beanManager.addPassivationInfo(interceptor);
     }
 
 



Mime
View raw message