[jboss-cvs] JBossAS SVN: r62510 - projects/javaee/trunk/jboss-ejb-api/src/main/javax/ejb.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Apr 24 07:13:13 EDT 2007


Author: wolfc
Date: 2007-04-24 07:13:13 -0400 (Tue, 24 Apr 2007)
New Revision: 62510

Removed:
   projects/javaee/trunk/jboss-ejb-api/src/main/javax/ejb/AccessMode.java
Modified:
   projects/javaee/trunk/jboss-ejb-api/src/main/javax/ejb/ActivationConfigProperty.java
   projects/javaee/trunk/jboss-ejb-api/src/main/javax/ejb/EJB.java
   projects/javaee/trunk/jboss-ejb-api/src/main/javax/ejb/EJBAccessException.java
   projects/javaee/trunk/jboss-ejb-api/src/main/javax/ejb/EJBTransactionRolledbackException.java
   projects/javaee/trunk/jboss-ejb-api/src/main/javax/ejb/Init.java
Log:
EJBTHREE-950: fixed api

Deleted: projects/javaee/trunk/jboss-ejb-api/src/main/javax/ejb/AccessMode.java
===================================================================
--- projects/javaee/trunk/jboss-ejb-api/src/main/javax/ejb/AccessMode.java	2007-04-24 10:57:27 UTC (rev 62509)
+++ projects/javaee/trunk/jboss-ejb-api/src/main/javax/ejb/AccessMode.java	2007-04-24 11:13:13 UTC (rev 62510)
@@ -1,34 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
-package javax.ejb;
-
-/**
- * The enum for the type of EJB Home interface
- * 
- * @author <a href="mailto:bill at jboss.org">Bill Burke</a>
- * @version $Revision$
- */
-public enum AccessMode
-{
-   LOCAL,
-   REMOTE
-}

Modified: projects/javaee/trunk/jboss-ejb-api/src/main/javax/ejb/ActivationConfigProperty.java
===================================================================
--- projects/javaee/trunk/jboss-ejb-api/src/main/javax/ejb/ActivationConfigProperty.java	2007-04-24 10:57:27 UTC (rev 62509)
+++ projects/javaee/trunk/jboss-ejb-api/src/main/javax/ejb/ActivationConfigProperty.java	2007-04-24 11:13:13 UTC (rev 62510)
@@ -21,14 +21,20 @@
 */
 package javax.ejb;
 
+import java.lang.annotation.Retention;
+import static java.lang.annotation.RetentionPolicy.*;
+import java.lang.annotation.Target;
 
 
+
 /**
  * Annotation for adding properties to messaging bean annotations (i.e. @MessageDriven, @Consumer)
  * 
  * @author <a href="mailto:bill at jboss.org">Bill Burke</a>
  * @version $Revision$
  */
+ at Retention(RUNTIME)
+ at Target({})
 public @interface ActivationConfigProperty
 {
    String propertyName();

Modified: projects/javaee/trunk/jboss-ejb-api/src/main/javax/ejb/EJB.java
===================================================================
--- projects/javaee/trunk/jboss-ejb-api/src/main/javax/ejb/EJB.java	2007-04-24 10:57:27 UTC (rev 62509)
+++ projects/javaee/trunk/jboss-ejb-api/src/main/javax/ejb/EJB.java	2007-04-24 11:13:13 UTC (rev 62510)
@@ -21,9 +21,9 @@
 */
 package javax.ejb;
 
-import java.lang.annotation.ElementType;
+import static java.lang.annotation.ElementType.*;
 import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
+import static java.lang.annotation.RetentionPolicy.*;
 import java.lang.annotation.Target;
 
 /**
@@ -32,7 +32,8 @@
  * @author <a href="mailto:bill at jboss.org">Bill Burke</a>
  * @version $Revision$
  */
- at Target({ElementType.METHOD, ElementType.TYPE, ElementType.FIELD, ElementType.PARAMETER}) @Retention(RetentionPolicy.RUNTIME)
+ at Retention(RUNTIME)
+ at Target({METHOD, TYPE, FIELD}) 
 public @interface EJB
 {
    String name() default "";

Modified: projects/javaee/trunk/jboss-ejb-api/src/main/javax/ejb/EJBAccessException.java
===================================================================
--- projects/javaee/trunk/jboss-ejb-api/src/main/javax/ejb/EJBAccessException.java	2007-04-24 10:57:27 UTC (rev 62509)
+++ projects/javaee/trunk/jboss-ejb-api/src/main/javax/ejb/EJBAccessException.java	2007-04-24 11:13:13 UTC (rev 62510)
@@ -43,15 +43,4 @@
   public EJBAccessException(String message) {
     super(message);
   }
-
-  /**
-   * Constructs an AccessLocalException with the specified detail message and a nested exception.
-   *
-   * @param message - The detailed message
-   * @param ex - The nested exception
-   */
-  public EJBAccessException(String message,
-                              Exception ex) {
-    super(message,ex);
-  }
 }

Modified: projects/javaee/trunk/jboss-ejb-api/src/main/javax/ejb/EJBTransactionRolledbackException.java
===================================================================
--- projects/javaee/trunk/jboss-ejb-api/src/main/javax/ejb/EJBTransactionRolledbackException.java	2007-04-24 10:57:27 UTC (rev 62509)
+++ projects/javaee/trunk/jboss-ejb-api/src/main/javax/ejb/EJBTransactionRolledbackException.java	2007-04-24 11:13:13 UTC (rev 62510)
@@ -57,15 +57,4 @@
   public EJBTransactionRolledbackException(String message,Exception ex) {
     super(message,ex);
   }
-
-   /**
-    * Constructs a TransactionRolledbackLocalException with the specified detail
-    * message and a nested exception.
-    *
-    * @param message - The detailed message.
-    * @param ex - The originally thrown exception.
-    */
-   public EJBTransactionRolledbackException(Exception ex) {
-     super(ex);
-   }
 }

Modified: projects/javaee/trunk/jboss-ejb-api/src/main/javax/ejb/Init.java
===================================================================
--- projects/javaee/trunk/jboss-ejb-api/src/main/javax/ejb/Init.java	2007-04-24 10:57:27 UTC (rev 62509)
+++ projects/javaee/trunk/jboss-ejb-api/src/main/javax/ejb/Init.java	2007-04-24 11:13:13 UTC (rev 62510)
@@ -34,5 +34,5 @@
  */
 @Target({ElementType.METHOD}) @Retention(RetentionPolicy.RUNTIME)
 public @interface Init{
-   String[] value() default {};
+   String value() default "";
 }




More information about the jboss-cvs-commits mailing list