[jboss-cvs] JBossAS SVN: r106150 - projects/ejb3/trunk/timerservice-spi/src/main/java/org/jboss/ejb3/timerservice/spi.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Jun 18 07:48:13 EDT 2010
Author: jaikiran
Date: 2010-06-18 07:48:12 -0400 (Fri, 18 Jun 2010)
New Revision: 106150
Modified:
projects/ejb3/trunk/timerservice-spi/src/main/java/org/jboss/ejb3/timerservice/spi/MultiTimeoutMethodTimedObjectInvoker.java
Log:
EJBTHREE-2117 Allow j.l.r.Method to be passed to MultiTimeoutMethodTimedObjectInvoker
Modified: projects/ejb3/trunk/timerservice-spi/src/main/java/org/jboss/ejb3/timerservice/spi/MultiTimeoutMethodTimedObjectInvoker.java
===================================================================
--- projects/ejb3/trunk/timerservice-spi/src/main/java/org/jboss/ejb3/timerservice/spi/MultiTimeoutMethodTimedObjectInvoker.java 2010-06-18 11:36:09 UTC (rev 106149)
+++ projects/ejb3/trunk/timerservice-spi/src/main/java/org/jboss/ejb3/timerservice/spi/MultiTimeoutMethodTimedObjectInvoker.java 2010-06-18 11:48:12 UTC (rev 106150)
@@ -21,6 +21,8 @@
*/
package org.jboss.ejb3.timerservice.spi;
+import java.lang.reflect.Method;
+
import javax.ejb.Timer;
/**
@@ -30,9 +32,9 @@
* on the target timed object
* </p>
* <p>
- * The timer service implementation is responsible for passing the correct method name and method parameters of the timeout method
- * to the {@link #callTimeout(Timer, String, String[])}. The method name and method parameters of the timeout method
- * depend on {@link Timer} for which the timeout occurred.
+ * The timer service implementation is responsible for passing the correct timeout method
+ * to the {@link #callTimeout(Timer, Method)}. The timeout method depends on the {@link Timer}
+ * for which the timeout occurred.
* </p>
* @author Jaikiran Pai
* @version $Revision: $
@@ -41,16 +43,16 @@
{
/**
- * Responsible for invoking the timeout method represented by the passed <code>timeoutMethodName</code>
- * and <code>timeoutMethodParams</code>, on the target object.
+ * Responsible for invoking the timeout method on the target object.
*
* <p>
* The timerservice implementation invokes this method as a callback when a timeout occurs for the passed
* <code>timer</code>. The timerservice implementation will be responsible for passing the correct
- * timeout method name and method params corresponding to the <code>timer</code> on which the timeout has occurred.
+ * timeout method corresponding to the <code>timer</code> on which the timeout has occurred.
* </p>
*
* @param timer the Timer that is passed to ejbTimeout
+ * @param timeoutMethod The timeout method
*/
- void callTimeout(Timer timer, String timeoutMethodName, String[] timeoutMethodParams) throws Exception;
+ void callTimeout(Timer timer, Method timeoutMethod) throws Exception;
}
More information about the jboss-cvs-commits
mailing list