openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject svn commit: r1468319 - /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/component/InterceptorBean.java
Date Tue, 16 Apr 2013 07:12:13 GMT
Author: rmannibucau
Date: Tue Apr 16 07:12:13 2013
New Revision: 1468319

URL: http://svn.apache.org/r1468319
Log:
OWB-839 ignoring interceptor lifecycle methods for method interception

Modified:
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/component/InterceptorBean.java

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/component/InterceptorBean.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/component/InterceptorBean.java?rev=1468319&r1=1468318&r2=1468319&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/component/InterceptorBean.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/component/InterceptorBean.java
Tue Apr 16 07:12:13 2013
@@ -144,7 +144,14 @@ public abstract class InterceptorBean<T>
             else if (interceptorMethods.length == 1)
             {
                 // directly invoke the interceptor method with the given InvocationContext
-                return interceptorMethods[0].invoke(instance, invocationContext);
+                if (interceptorMethods[0].getParameterTypes().length == 1)
+                {
+                    return interceptorMethods[0].invoke(instance, invocationContext);
+                } // else it can be a @PostContruct void pc(); which shouldn't be called
from here
+                else
+                {
+                    return invocationContext.proceed();
+                }
             }
             else
             {



Mime
View raw message