geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dblev...@apache.org
Subject svn commit: r881904 - in /geronimo/specs/trunk/geronimo-ejb_3.1_spec/src/main/java/javax/ejb: EJBContext.java MessageDrivenContext.java SessionContext.java Timer.java TimerConfig.java TimerService.java
Date Wed, 18 Nov 2009 19:58:30 GMT
Author: dblevins
Date: Wed Nov 18 19:58:29 2009
New Revision: 881904

URL: http://svn.apache.org/viewvc?rev=881904&view=rev
Log:
Timer related updates.  Moved SessionContext.getContextData() method to EJBContext

Modified:
    geronimo/specs/trunk/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/EJBContext.java
    geronimo/specs/trunk/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/MessageDrivenContext.java
    geronimo/specs/trunk/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/SessionContext.java
    geronimo/specs/trunk/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/Timer.java
    geronimo/specs/trunk/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/TimerConfig.java
    geronimo/specs/trunk/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/TimerService.java

Modified: geronimo/specs/trunk/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/EJBContext.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/EJBContext.java?rev=881904&r1=881903&r2=881904&view=diff
==============================================================================
--- geronimo/specs/trunk/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/EJBContext.java (original)
+++ geronimo/specs/trunk/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/EJBContext.java Wed
Nov 18 19:58:29 2009
@@ -28,6 +28,7 @@
 import java.security.Identity;
 import java.security.Principal;
 import java.util.Properties;
+import java.util.Map;
 import javax.transaction.UserTransaction;
 
 /**
@@ -67,4 +68,6 @@
 
     Object lookup(String name);
 
+    Map<String,Object> getContextData();
+
 }

Modified: geronimo/specs/trunk/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/MessageDrivenContext.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/MessageDrivenContext.java?rev=881904&r1=881903&r2=881904&view=diff
==============================================================================
--- geronimo/specs/trunk/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/MessageDrivenContext.java
(original)
+++ geronimo/specs/trunk/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/MessageDrivenContext.java
Wed Nov 18 19:58:29 2009
@@ -31,5 +31,4 @@
  * @version $Rev$ $Date$
  */
 public interface MessageDrivenContext extends EJBContext {
-    Map<String,Object> getContextData();
 }

Modified: geronimo/specs/trunk/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/SessionContext.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/SessionContext.java?rev=881904&r1=881903&r2=881904&view=diff
==============================================================================
--- geronimo/specs/trunk/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/SessionContext.java
(original)
+++ geronimo/specs/trunk/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/SessionContext.java
Wed Nov 18 19:58:29 2009
@@ -43,6 +43,4 @@
     Class getInvokedBusinessInterface();
 
     boolean wasCancelCalled();
-
-    Map<String,Object> getContextData();
 }

Modified: geronimo/specs/trunk/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/Timer.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/Timer.java?rev=881904&r1=881903&r2=881904&view=diff
==============================================================================
--- geronimo/specs/trunk/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/Timer.java (original)
+++ geronimo/specs/trunk/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/Timer.java Wed Nov
18 19:58:29 2009
@@ -34,11 +34,18 @@
 public interface Timer {
     void cancel() throws EJBException, IllegalStateException, NoSuchObjectLocalException;
 
-    long getTimeRemaining() throws EJBException, IllegalStateException, NoSuchObjectLocalException;
+    long getTimeRemaining() throws EJBException, IllegalStateException, NoSuchObjectLocalException,
NoMoreTimeoutsException;
 
-    Date getNextTimeout() throws EJBException, IllegalStateException, NoSuchObjectLocalException;
+    Date getNextTimeout() throws EJBException, IllegalStateException, NoSuchObjectLocalException,
NoMoreTimeoutsException;
 
     Serializable getInfo() throws EJBException, IllegalStateException, NoSuchObjectLocalException;
 
     TimerHandle getHandle() throws EJBException, IllegalStateException, NoSuchObjectLocalException;
+
+    ScheduleExpression getSchedule() throws EJBException, IllegalStateException, NoSuchObjectLocalException;
+
+    boolean isPersistent() throws EJBException, IllegalStateException, NoSuchObjectLocalException;
+
+    boolean isCalendarTimer() throws EJBException, IllegalStateException, NoSuchObjectLocalException;
+
 }

Modified: geronimo/specs/trunk/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/TimerConfig.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/TimerConfig.java?rev=881904&r1=881903&r2=881904&view=diff
==============================================================================
--- geronimo/specs/trunk/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/TimerConfig.java (original)
+++ geronimo/specs/trunk/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/TimerConfig.java Wed
Nov 18 19:58:29 2009
@@ -26,8 +26,16 @@
 public class TimerConfig {
 	private Serializable info;
 	private boolean persistent;
-	
-	public Serializable getInfo() {
+
+    public TimerConfig() {
+    }
+
+    public TimerConfig(Serializable info, boolean persistent) {
+        this.info = info;
+        this.persistent = persistent;
+    }
+
+    public Serializable getInfo() {
 		return info;
 	}
 	

Modified: geronimo/specs/trunk/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/TimerService.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/TimerService.java?rev=881904&r1=881903&r2=881904&view=diff
==============================================================================
--- geronimo/specs/trunk/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/TimerService.java (original)
+++ geronimo/specs/trunk/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/TimerService.java Wed
Nov 18 19:58:29 2009
@@ -42,4 +42,18 @@
     Timer createTimer(long duration, Serializable info) throws IllegalArgumentException,
IllegalStateException, EJBException;
 
     Collection getTimers() throws IllegalStateException, EJBException;
+
+    Timer createSingleActionTimer(long duration, TimerConfig timerConfig) throws IllegalArgumentException,
IllegalStateException, EJBException;
+
+    Timer createSingleActionTimer(java.util.Date expiration, TimerConfig timerConfig) throws
IllegalArgumentException, IllegalStateException, EJBException;
+
+    Timer createIntervalTimer(long initialDuration, long intervalDuration, TimerConfig timerConfig)
throws IllegalArgumentException, IllegalStateException, EJBException;
+
+    Timer createIntervalTimer(java.util.Date initialExpiration, long intervalDuration, TimerConfig
timerConfig) throws IllegalArgumentException, IllegalStateException, EJBException;
+
+    Timer createCalendarTimer(ScheduleExpression schedule) throws IllegalArgumentException,
IllegalStateException, EJBException;
+
+    Timer createCalendarTimer(ScheduleExpression schedule, TimerConfig timerConfig) throws
IllegalArgumentException, IllegalStateException, EJBException;
+
+
 }



Mime
View raw message