tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dblev...@apache.org
Subject svn commit: r705377 - /openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/
Date Thu, 16 Oct 2008 22:12:14 GMT
Author: dblevins
Date: Thu Oct 16 15:12:13 2008
New Revision: 705377

URL: http://svn.apache.org/viewvc?rev=705377&view=rev
Log:
OPENEJB-924: Adding APIs for new EJB 3.1 features
Patch from Alex Grönholm based on proposed APIs in current EJB 3.1 draft spec.  Slight modification
on AccessTimeout from me.

Added:
    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/AfterBegin.java
    openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/AfterCompletion.java
    openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/AsyncResult.java
    openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/Asynchronous.java
    openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/BeforeCompletion.java
    openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/LocalBean.java
    openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/Schedule.java
    openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/ScheduleExpression.java
    openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/Schedules.java
    openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/TimerConfig.java

Added: 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=705377&view=auto
==============================================================================
--- openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/AccessTimeout.java
(added)
+++ openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/AccessTimeout.java
Thu Oct 16 15:12:13 2008
@@ -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 static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.ElementType.TYPE;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+import java.util.concurrent.TimeUnit;
+
+@Target(value = {METHOD, TYPE})
+@Retention(value = RUNTIME)
+public @interface AccessTimeout {
+    long value() default 0;
+}

Added: openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/AfterBegin.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/AfterBegin.java?rev=705377&view=auto
==============================================================================
--- openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/AfterBegin.java
(added)
+++ openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/AfterBegin.java
Thu Oct 16 15:12:13 2008
@@ -0,0 +1,34 @@
+/**
+ * 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 static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+@Target(value = METHOD)
+@Retention(value = RUNTIME)
+public @interface AfterBegin {
+
+}

Added: openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/AfterCompletion.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/AfterCompletion.java?rev=705377&view=auto
==============================================================================
--- openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/AfterCompletion.java
(added)
+++ openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/AfterCompletion.java
Thu Oct 16 15:12:13 2008
@@ -0,0 +1,34 @@
+/**
+ * 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 static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+@Target(value = METHOD)
+@Retention(value = RUNTIME)
+public @interface AfterCompletion {
+
+}

Added: openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/AsyncResult.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/AsyncResult.java?rev=705377&view=auto
==============================================================================
--- openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/AsyncResult.java
(added)
+++ openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/AsyncResult.java
Thu Oct 16 15:12:13 2008
@@ -0,0 +1,56 @@
+/**
+ * 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.ExecutionException;
+import java.util.concurrent.Future;
+import java.util.concurrent.TimeUnit;
+import java.util.concurrent.TimeoutException;
+
+public final class AsyncResult<V> implements Future<V> {
+	private final V result;
+
+	public AsyncResult(V result) {
+		this.result = result;
+	}
+	
+	public boolean cancel(boolean mayInterruptIfRunning) {
+		throw new IllegalStateException();
+	}
+
+	public V get() throws InterruptedException, ExecutionException {
+		return result;
+	}
+
+	public V get(long timeout, TimeUnit unit) throws InterruptedException,
+			ExecutionException, TimeoutException {
+		return result;
+	}
+
+	public boolean isCancelled() {
+		return false;
+	}
+
+	public boolean isDone() {
+		return true;
+	}
+}

Added: openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/Asynchronous.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/Asynchronous.java?rev=705377&view=auto
==============================================================================
--- openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/Asynchronous.java
(added)
+++ openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/Asynchronous.java
Thu Oct 16 15:12:13 2008
@@ -0,0 +1,35 @@
+/**
+ * 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 static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.ElementType.TYPE;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+@Target(value = {METHOD, TYPE})
+@Retention(value = RUNTIME)
+public @interface Asynchronous {
+
+}

Added: openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/BeforeCompletion.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/BeforeCompletion.java?rev=705377&view=auto
==============================================================================
--- openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/BeforeCompletion.java
(added)
+++ openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/BeforeCompletion.java
Thu Oct 16 15:12:13 2008
@@ -0,0 +1,34 @@
+/**
+ * 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 static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+@Target(value = METHOD)
+@Retention(value = RUNTIME)
+public @interface BeforeCompletion {
+
+}

Added: openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/LocalBean.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/LocalBean.java?rev=705377&view=auto
==============================================================================
--- openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/LocalBean.java
(added)
+++ openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/LocalBean.java
Thu Oct 16 15:12:13 2008
@@ -0,0 +1,34 @@
+/**
+ * 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 static java.lang.annotation.ElementType.TYPE;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+@Target(value = TYPE)
+@Retention(value = RUNTIME)
+public @interface LocalBean {
+
+}

Added: openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/Schedule.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/Schedule.java?rev=705377&view=auto
==============================================================================
--- openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/Schedule.java
(added)
+++ openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/Schedule.java
Thu Oct 16 15:12:13 2008
@@ -0,0 +1,50 @@
+/**
+ * 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 static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+@Target(value = METHOD)
+@Retention(value = RUNTIME)
+public @interface Schedule {
+	String dayOfMonth() default "*";
+	
+	String dayOfWeek() default "*";
+
+	String hour() default "0";
+
+	String info() default "";
+
+	String minute() default "0";
+
+	String month() default "*";
+
+	boolean persistent() default true;
+
+	String second() default "0";
+
+	java.lang.String year() default "*";
+}

Added: 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=705377&view=auto
==============================================================================
--- openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/ScheduleExpression.java
(added)
+++ openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/ScheduleExpression.java
Thu Oct 16 15:12:13 2008
@@ -0,0 +1,153 @@
+/**
+ * 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.io.Serializable;
+import java.util.Date;
+
+public final class ScheduleExpression implements Serializable {
+	private String dayOfMonth = "*";
+	private String dayOfWeek = "*";
+	private String hour = "0";
+	private String minute = "0";
+	private String month = "*";
+	private String second = "0";
+	private String year = "*";
+	private Date start;
+	private Date end;
+	
+	public ScheduleExpression dayOfMonth(int d) {
+		dayOfMonth = Integer.toString(d);
+		return this;
+	}
+
+	public ScheduleExpression dayOfMonth(String d) {
+		dayOfMonth = d;
+		return this;
+	}
+
+	public ScheduleExpression dayOfWeek(int d) {
+		dayOfWeek = Integer.toString(d);
+		return this;
+	}
+
+	public ScheduleExpression dayOfWeek(String d) {
+		dayOfWeek = d;
+		return this;
+	}
+
+	public ScheduleExpression end(Date e) {
+		end = e;
+		return this;
+	}
+
+	public String getDayOfMonth() {
+		return dayOfMonth;
+	}
+
+	public String getDayOfWeek() {
+		return dayOfWeek;
+	}
+
+	public Date getEnd() {
+		return end;
+	}
+
+	public String getHour() {
+		return hour;
+	}
+
+	public String getMinute() {
+		return minute;
+	}
+
+	public String getMonth() {
+		return month;
+	}
+
+	public String getSecond() {
+		return second;
+	}
+
+	public Date getStart() {
+		return start;
+	}
+
+	public String getYear() {
+		return year;
+	}
+	
+	public ScheduleExpression hour(int h) {
+		hour = Integer.toString(h);
+		return this;
+	}
+
+	public ScheduleExpression hour(String h) {
+		hour = h;
+		return this;
+	}
+
+	public ScheduleExpression minute(int m) {
+		minute = Integer.toString(m);
+		return this;
+	}
+
+	public ScheduleExpression minute(String m) {
+		minute = m;
+		return this;
+	}
+
+	public ScheduleExpression month(int m) {
+		month = Integer.toString(m);
+		return this;
+	}
+
+	public ScheduleExpression month(String m) {
+		month = m;
+		return this;
+	}
+
+	public ScheduleExpression second(int s) {
+		second = Integer.toString(s);
+		return this;
+	}
+
+	public ScheduleExpression second(String s) {
+		second = s;
+		return this;
+	}
+
+	public ScheduleExpression start(Date s) {
+		start = s;
+		return this;
+	}
+
+	public ScheduleExpression year(int y) {
+		year = Integer.toString(y);
+		return this;
+	}
+
+	public ScheduleExpression year(String y) {
+		year = y;
+		return this;
+	}
+}

Added: openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/Schedules.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/Schedules.java?rev=705377&view=auto
==============================================================================
--- openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/Schedules.java
(added)
+++ openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/Schedules.java
Thu Oct 16 15:12:13 2008
@@ -0,0 +1,33 @@
+/**
+ * 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 static java.lang.annotation.ElementType.METHOD;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+@Target(value = METHOD)
+@Retention(value = RUNTIME)
+public @interface Schedules {
+	Schedule[] value();
+}

Added: openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/TimerConfig.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/TimerConfig.java?rev=705377&view=auto
==============================================================================
--- openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/TimerConfig.java
(added)
+++ openejb/trunk/openejb3/api/ejb31-api-experimental/src/main/java/javax/ejb/TimerConfig.java
Thu Oct 16 15:12:13 2008
@@ -0,0 +1,45 @@
+/**
+ * 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.io.Serializable;
+
+public class TimerConfig {
+	private Serializable info;
+	private boolean persistent;
+	
+	public Serializable getInfo() {
+		return info;
+	}
+	
+	public boolean isPersistent() {
+		return persistent;
+	}
+
+	public void setInfo(Serializable i) {
+		info = i;
+	}
+
+	public void setPersistent(boolean persistent) {
+		this.persistent = persistent;
+	}
+}



Mime
View raw message