[jboss-cvs] jboss-seam/src/main/org/jboss/seam/interceptors ...
Gavin King
gavin.king at jboss.com
Wed May 30 19:23:46 EDT 2007
User: gavin
Date: 07/05/30 19:23:46
Modified: src/main/org/jboss/seam/interceptors
AsynchronousInterceptor.java
Log:
JBSEAM-1218
Revision Changes Path
1.13 +2 -4 jboss-seam/src/main/org/jboss/seam/interceptors/AsynchronousInterceptor.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: AsynchronousInterceptor.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/interceptors/AsynchronousInterceptor.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -b -r1.12 -r1.13
--- AsynchronousInterceptor.java 16 Feb 2007 18:52:08 -0000 1.12
+++ AsynchronousInterceptor.java 30 May 2007 23:23:46 -0000 1.13
@@ -1,7 +1,5 @@
package org.jboss.seam.interceptors;
-import javax.ejb.Timer;
-
import org.jboss.seam.InterceptorType;
import org.jboss.seam.annotations.AroundInvoke;
import org.jboss.seam.annotations.Asynchronous;
@@ -28,9 +26,9 @@
{
throw new IllegalStateException("org.jboss.seam.core.dispatcher is not installed in components.xml");
}
- Timer timer = dispatcher.scheduleInvocation( invocation, getComponent() );
+ Object timer = dispatcher.scheduleInvocation( invocation, getComponent() );
//if the method returns a Timer, return it to the client
- return invocation.getMethod().getReturnType().equals(Timer.class) ? timer : null;
+ return timer!=null && invocation.getMethod().getReturnType().isAssignableFrom( timer.getClass() ) ? timer : null;
}
else
{
More information about the jboss-cvs-commits
mailing list