[jboss-cvs] jboss-seam/examples/seampay/src/org/jboss/seam/example/seampay ...
Gavin King
gavin.king at jboss.com
Mon Oct 23 14:16:26 EDT 2006
User: gavin
Date: 06/10/23 14:16:26
Modified: examples/seampay/src/org/jboss/seam/example/seampay
PaymentController.java
Log:
update example to api
Revision Changes Path
1.5 +10 -13 jboss-seam/examples/seampay/src/org/jboss/seam/example/seampay/PaymentController.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: PaymentController.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/seampay/src/org/jboss/seam/example/seampay/PaymentController.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- PaymentController.java 22 Oct 2006 22:02:01 -0000 1.4
+++ PaymentController.java 23 Oct 2006 18:16:26 -0000 1.5
@@ -1,15 +1,14 @@
package org.jboss.seam.example.seampay;
-import org.jboss.seam.annotations.*;
-import org.jboss.seam.annotations.timer.*;
-import org.jboss.seam.framework.*;
-import org.jboss.seam.core.*;
-import org.jboss.seam.log.Log;
-
-import javax.persistence.*;
+import javax.ejb.Timer;
+import javax.ejb.TimerHandle;
-import java.util.Date;
-import javax.ejb.*;
+import org.jboss.seam.annotations.In;
+import org.jboss.seam.annotations.Logger;
+import org.jboss.seam.annotations.RequestParameter;
+import org.jboss.seam.annotations.Transactional;
+import org.jboss.seam.framework.EntityHome;
+import org.jboss.seam.log.Log;
public class PaymentController
@@ -31,8 +30,7 @@
payment.getPaymentFrequency().getInterval(),
payment);
- TimerHandle handle = Dispatcher.instance().getHandle(timer);
- payment.setTimerHandle(handle);
+ payment.setTimerHandle( timer.getHandle() );
return result;
}
@@ -49,8 +47,7 @@
payment.setTimerHandle(null);
payment.setActive(false);
- Timer timer = Dispatcher.instance().getTimer(handle);
- Dispatcher.instance().cancel(timer);
+ handle.getTimer().cancel();
}
}
More information about the jboss-cvs-commits
mailing list