Author: dblevins
Date: Mon May 25 19:08:25 2009
New Revision: 778471

URL: http://svn.apache.org/viewvc?rev=778471&view=rev
Log:
Some EJB 3.1 spec class updates

Added:
    
openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/IllegalLoopbackException.java
    
openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/StatefulTimeout.java
    
openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/embeddable/
    
openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/embeddable/EJBContainer.java
    
openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/spi/
    
openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/spi/EJBContainerProvider.java
Modified:
    
openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/AccessTimeout.java
    
openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/ScheduleExpression.java

Modified: 
openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/AccessTimeout.java
URL: 
http://svn.apache.org/viewvc/openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/AccessTimeout.java?rev=778471&r1=778470&r2=778471&view=diff
==============================================================================
--- 
openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/AccessTimeout.java
 (original)
+++ 
openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/AccessTimeout.java
 Mon May 25 19:08:25 2009
@@ -32,5 +32,6 @@
 @Target(value = {METHOD, TYPE})
 @Retention(value = RUNTIME)
 public @interface AccessTimeout {
-    long value() default 0;
+    long value();
+    TimeUnit unit() default TimeUnit.MILLISECONDS; 
 }

Added: 
openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/IllegalLoopbackException.java
URL: 
http://svn.apache.org/viewvc/openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/IllegalLoopbackException.java?rev=778471&view=auto
==============================================================================
--- 
openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/IllegalLoopbackException.java
 (added)
+++ 
openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/IllegalLoopbackException.java
 Mon May 25 19:08:25 2009
@@ -0,0 +1,36 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+package javax.ejb;
+
+/**
+ * @version $Revision$ $Date$
+ */
+public class IllegalLoopbackException extends 
javax.ejb.ConcurrentAccessException {
+
+    public IllegalLoopbackException() {
+    }
+
+    public IllegalLoopbackException(String string) {
+        super(string);
+    }
+
+}

Modified: 
openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/ScheduleExpression.java
URL: 
http://svn.apache.org/viewvc/openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/ScheduleExpression.java?rev=778471&r1=778470&r2=778471&view=diff
==============================================================================
--- 
openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/ScheduleExpression.java
 (original)
+++ 
openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/ScheduleExpression.java
 Mon May 25 19:08:25 2009
@@ -32,6 +32,7 @@
        private String month = "*";
        private String second = "0";
        private String year = "*";
+       private String timezone;
        private Date start;
        private Date end;
        
@@ -96,6 +97,10 @@
                return year;
        }
        
+       public String getTimezone() {
+               return timezone;
+       }
+
        public ScheduleExpression hour(int h) {
                hour = Integer.toString(h);
                return this;
@@ -150,4 +155,14 @@
                year = y;
                return this;
        }
+
+    /**
+     * See http://en.wikipedia.org/wiki/List_of_zoneinfo_timezones for valid 
timezones 
+     * @param t
+     * @return
+     */
+       public ScheduleExpression timezone(String t) {
+               timezone = t;
+               return this;
+       }
 }

Added: 
openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/StatefulTimeout.java
URL: 
http://svn.apache.org/viewvc/openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/StatefulTimeout.java?rev=778471&view=auto
==============================================================================
--- 
openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/StatefulTimeout.java
 (added)
+++ 
openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/StatefulTimeout.java
 Mon May 25 19:08:25 2009
@@ -0,0 +1,36 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+package javax.ejb;
+
+import java.util.concurrent.TimeUnit;
+import java.lang.annotation.Target;
+import java.lang.annotation.Retention;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+import static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.ElementType.TYPE;
+
+...@target(value = {METHOD, TYPE})
+...@retention(value = RUNTIME)
+public @interface StatefulTimeout {
+    long value();
+    TimeUnit unit() default TimeUnit.MILLISECONDS;
+}

Added: 
openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/embeddable/EJBContainer.java
URL: 
http://svn.apache.org/viewvc/openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/embeddable/EJBContainer.java?rev=778471&view=auto
==============================================================================
--- 
openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/embeddable/EJBContainer.java
 (added)
+++ 
openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/embeddable/EJBContainer.java
 Mon May 25 19:08:25 2009
@@ -0,0 +1,47 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+package javax.ejb.embeddable;
+
+import java.util.Collections;
+
+public abstract class EJBContainer {
+
+    public static final String PROVIDER = "javax.ejb.embeddable.provider";
+    public static final String APP_NAME = "javax.ejb.embeddable.appName";
+    public static final String MODULES = "javax.ejb.embeddable.modules";
+
+    public EJBContainer() {
+    }
+
+    public abstract void close();
+
+    public static EJBContainer createEJBContainer() {
+        return createEJBContainer(Collections.EMPTY_MAP);
+    }
+
+    public static EJBContainer createEJBContainer(java.util.Map<?, ?> 
properties) {
+        return null; // TODO
+    }
+
+    public abstract javax.naming.Context getContext();
+
+}

Added: 
openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/spi/EJBContainerProvider.java
URL: 
http://svn.apache.org/viewvc/openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/spi/EJBContainerProvider.java?rev=778471&view=auto
==============================================================================
--- 
openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/spi/EJBContainerProvider.java
 (added)
+++ 
openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/spi/EJBContainerProvider.java
 Mon May 25 19:08:25 2009
@@ -0,0 +1,28 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+//
+// This source code implements specifications defined by the Java
+// Community Process. In order to remain compliant with the specification
+// DO NOT add / change / or delete method signatures!
+//
+package javax.ejb.spi;
+
+import javax.ejb.embeddable.EJBContainer;
+
+public interface EJBContainerProvider {
+    public EJBContainer createEJBContainer(java.util.Map<?,?> properties);
+}


Reply via email to