[seam-commits] Seam SVN: r15495 - branches/enterprise/WFK-2_1/jboss-seam/src/main/java/org/jboss/seam/intercept.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Fri May 10 09:23:47 EDT 2013


Author: manaRH
Date: 2013-05-10 09:23:46 -0400 (Fri, 10 May 2013)
New Revision: 15495

Modified:
   branches/enterprise/WFK-2_1/jboss-seam/src/main/java/org/jboss/seam/intercept/EventType.java
   branches/enterprise/WFK-2_1/jboss-seam/src/main/java/org/jboss/seam/intercept/SessionBeanInterceptor.java
Log:
JBSEAM-5091 added aroundTimeout method to SessionBeanInterceptor

Modified: branches/enterprise/WFK-2_1/jboss-seam/src/main/java/org/jboss/seam/intercept/EventType.java
===================================================================
--- branches/enterprise/WFK-2_1/jboss-seam/src/main/java/org/jboss/seam/intercept/EventType.java	2013-05-10 13:23:34 UTC (rev 15494)
+++ branches/enterprise/WFK-2_1/jboss-seam/src/main/java/org/jboss/seam/intercept/EventType.java	2013-05-10 13:23:46 UTC (rev 15495)
@@ -10,6 +10,7 @@
 enum EventType
 {
    AROUND_INVOKE,
+   AROUND_TIMEOUT,
    PRE_DESTORY,
    POST_CONSTRUCT,
    PRE_PASSIVATE,

Modified: branches/enterprise/WFK-2_1/jboss-seam/src/main/java/org/jboss/seam/intercept/SessionBeanInterceptor.java
===================================================================
--- branches/enterprise/WFK-2_1/jboss-seam/src/main/java/org/jboss/seam/intercept/SessionBeanInterceptor.java	2013-05-10 13:23:34 UTC (rev 15494)
+++ branches/enterprise/WFK-2_1/jboss-seam/src/main/java/org/jboss/seam/intercept/SessionBeanInterceptor.java	2013-05-10 13:23:46 UTC (rev 15495)
@@ -11,6 +11,7 @@
 import javax.ejb.PostActivate;
 import javax.ejb.PrePassivate;
 import javax.interceptor.AroundInvoke;
+import javax.interceptor.AroundTimeout;
 import javax.interceptor.InvocationContext;
 
 import org.jboss.seam.log.LogProvider;
@@ -50,6 +51,12 @@
       return invoke( new EJBInvocationContext(invocation), EventType.AROUND_INVOKE);
    }
    
+   @AroundTimeout
+   public Object aroundTimeout(InvocationContext invocation) throws Exception
+   {
+      return invoke( new EJBInvocationContext(invocation), EventType.AROUND_TIMEOUT);
+   }
+   
    @PrePassivate
    public void prePassivate(InvocationContext invocation)
    {



More information about the seam-commits mailing list