[seam-commits] Seam SVN: r14712 - branches/community/Seam_2_3/jboss-seam/src/main/java/org/jboss/seam/core.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Mon May 21 07:13:38 EDT 2012


Author: maschmid
Date: 2012-05-21 07:13:37 -0400 (Mon, 21 May 2012)
New Revision: 14712

Modified:
   branches/community/Seam_2_3/jboss-seam/src/main/java/org/jboss/seam/core/SynchronizationInterceptor.java
Log:
JBSEAM-4943 proper check for SFSBs


Modified: branches/community/Seam_2_3/jboss-seam/src/main/java/org/jboss/seam/core/SynchronizationInterceptor.java
===================================================================
--- branches/community/Seam_2_3/jboss-seam/src/main/java/org/jboss/seam/core/SynchronizationInterceptor.java	2012-05-21 11:04:51 UTC (rev 14711)
+++ branches/community/Seam_2_3/jboss-seam/src/main/java/org/jboss/seam/core/SynchronizationInterceptor.java	2012-05-21 11:13:37 UTC (rev 14712)
@@ -6,6 +6,7 @@
 
 import javax.ejb.Stateful;
 
+import org.jboss.seam.ComponentType;
 import org.jboss.seam.annotations.intercept.AroundInvoke;
 import org.jboss.seam.annotations.intercept.Interceptor;
 import org.jboss.seam.annotations.intercept.InterceptorType;
@@ -48,7 +49,7 @@
    public boolean isInterceptorEnabled()
    {
       // JBSEAM-4943
-      return getComponent().isSynchronize() && !getComponent().businessInterfaceHasAnnotation(Stateful.class);
+      return getComponent().isSynchronize() && !ComponentType.STATEFUL_SESSION_BEAN.equals(getComponent().getType());
    }
 
 }



More information about the seam-commits mailing list