[jboss-cvs] JBossAS SVN: r57262 - in branches/JEE5_TCK/ejb3x/src/main/javax/annotation: . security

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Sep 28 08:37:07 EDT 2006


Author: wolfc
Date: 2006-09-28 08:36:47 -0400 (Thu, 28 Sep 2006)
New Revision: 57262

Added:
   branches/JEE5_TCK/ejb3x/src/main/javax/annotation/Generated.java
Modified:
   branches/JEE5_TCK/ejb3x/src/main/javax/annotation/PostConstruct.java
   branches/JEE5_TCK/ejb3x/src/main/javax/annotation/PreDestroy.java
   branches/JEE5_TCK/ejb3x/src/main/javax/annotation/Resource.java
   branches/JEE5_TCK/ejb3x/src/main/javax/annotation/Resources.java
   branches/JEE5_TCK/ejb3x/src/main/javax/annotation/security/DeclareRoles.java
   branches/JEE5_TCK/ejb3x/src/main/javax/annotation/security/DenyAll.java
   branches/JEE5_TCK/ejb3x/src/main/javax/annotation/security/PermitAll.java
   branches/JEE5_TCK/ejb3x/src/main/javax/annotation/security/RolesAllowed.java
   branches/JEE5_TCK/ejb3x/src/main/javax/annotation/security/RunAs.java
Log:
JBCTS-308

Added: branches/JEE5_TCK/ejb3x/src/main/javax/annotation/Generated.java
===================================================================
--- branches/JEE5_TCK/ejb3x/src/main/javax/annotation/Generated.java	2006-09-28 11:33:32 UTC (rev 57261)
+++ branches/JEE5_TCK/ejb3x/src/main/javax/annotation/Generated.java	2006-09-28 12:36:47 UTC (rev 57262)
@@ -0,0 +1,65 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, Red Hat Middleware LLC, 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.annotation;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+import static java.lang.annotation.ElementType.*;
+import static java.lang.annotation.RetentionPolicy.*;
+
+/**
+ * The Generated annoation is used to mark source code that has been generated. 
+ * It can also be used to differentiate user written code from generated code in 
+ * a single file. When used, the value element must have the name of the code 
+ * generator. The recommended convention is to use the fully qualified name of 
+ * the code generator in the value field . For example: com.company.package.classname. 
+ * The date element is used to indicate the date the source was generated. The 
+ * date element must follow the ISO 8601 standard. For example the date element 
+ * would have the following value 2001-07-04T12:08:56.235-0700 which represents 
+ * 2001-07-04 12:08:56 local time in the U.S. Pacific Time time zone. The comment 
+ * element is a place holder for any comments that the code generator may want to 
+ * include in the generated code.
+ *
+ * @author <a href="mailto:carlo.dewolf at jboss.com">Carlo de Wolf</a>
+ * @version $Revision: $
+ * @since Common Annotations 1.0
+ */
+ at Documented
+ at Retention(SOURCE)
+ at Target({PACKAGE, TYPE, ANNOTATION_TYPE, METHOD, CONSTRUCTOR, FIELD, LOCAL_VARIABLE, PARAMETER})
+public @interface Generated {
+   /**
+    * This is used by the code generator to mark the generated classes and methods.
+    */
+   String[] value();
+   
+   /**
+    * A place holder for any comments that the code generator may want to include in the generated code.
+    */
+   String comments() default "";
+   
+   /**
+    * Date when the source was generated.
+    */
+   String date() default "";
+}

Modified: branches/JEE5_TCK/ejb3x/src/main/javax/annotation/PostConstruct.java
===================================================================
--- branches/JEE5_TCK/ejb3x/src/main/javax/annotation/PostConstruct.java	2006-09-28 11:33:32 UTC (rev 57261)
+++ branches/JEE5_TCK/ejb3x/src/main/javax/annotation/PostConstruct.java	2006-09-28 12:36:47 UTC (rev 57262)
@@ -21,6 +21,7 @@
 */
 package javax.annotation;
 
+import java.lang.annotation.Documented;
 import java.lang.annotation.Target;
 import java.lang.annotation.Retention;
 import static java.lang.annotation.ElementType.*;
@@ -34,7 +35,9 @@
  * @author <a href="mailto:kabir.khan at jboss.org">Kabir Khan</a>
  * @version $Revision$
  */
- at Target({METHOD}) @Retention(RUNTIME)
-   public @interface PostConstruct
+ at Documented
+ at Target({METHOD})
+ at Retention(RUNTIME)
+public @interface PostConstruct
 {
 }

Modified: branches/JEE5_TCK/ejb3x/src/main/javax/annotation/PreDestroy.java
===================================================================
--- branches/JEE5_TCK/ejb3x/src/main/javax/annotation/PreDestroy.java	2006-09-28 11:33:32 UTC (rev 57261)
+++ branches/JEE5_TCK/ejb3x/src/main/javax/annotation/PreDestroy.java	2006-09-28 12:36:47 UTC (rev 57262)
@@ -21,6 +21,7 @@
 */
 package javax.annotation;
 
+import java.lang.annotation.Documented;
 import java.lang.annotation.Target;
 import java.lang.annotation.Retention;
 import static java.lang.annotation.ElementType.*;
@@ -33,7 +34,9 @@
  * @author <a href="mailto:kabir.khan at jboss.org">Kabir Khan</a>
  * @version $Revision$
  */
- at Target({METHOD}) @Retention(RUNTIME)
-   public @interface PreDestroy
+ at Documented
+ at Target({METHOD})
+ at Retention(RUNTIME)
+public @interface PreDestroy
 {
 }

Modified: branches/JEE5_TCK/ejb3x/src/main/javax/annotation/Resource.java
===================================================================
--- branches/JEE5_TCK/ejb3x/src/main/javax/annotation/Resource.java	2006-09-28 11:33:32 UTC (rev 57261)
+++ branches/JEE5_TCK/ejb3x/src/main/javax/annotation/Resource.java	2006-09-28 12:36:47 UTC (rev 57262)
@@ -21,7 +21,7 @@
 */
 package javax.annotation;
 
-import java.lang.annotation.ElementType;
+import static java.lang.annotation.ElementType.*;
 import java.lang.annotation.Retention;
 import java.lang.annotation.RetentionPolicy;
 import java.lang.annotation.Target;
@@ -37,14 +37,12 @@
  * @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)
-   public @interface Resource
+ at Target({TYPE, FIELD, METHOD})
+ at Retention(RetentionPolicy.RUNTIME)
+public @interface Resource
 {
    /**
     * Enums for whether the container or bean is to perform authentication.
-    *
-    * @author <a href="mailto:bill at jboss.org">Bill Burke</a>
-    * @version $Revision$
     */
    public enum AuthenticationType
    {

Modified: branches/JEE5_TCK/ejb3x/src/main/javax/annotation/Resources.java
===================================================================
--- branches/JEE5_TCK/ejb3x/src/main/javax/annotation/Resources.java	2006-09-28 11:33:32 UTC (rev 57261)
+++ branches/JEE5_TCK/ejb3x/src/main/javax/annotation/Resources.java	2006-09-28 12:36:47 UTC (rev 57262)
@@ -21,6 +21,7 @@
 */
 package javax.annotation;
 
+import java.lang.annotation.Documented;
 import java.lang.annotation.ElementType;
 import java.lang.annotation.Retention;
 import java.lang.annotation.RetentionPolicy;
@@ -33,7 +34,9 @@
  * @author <a href="mailto:bill at jboss.org">Bill Burke</a>
  * @version $Revision$
  */
- at Target({ElementType.TYPE}) @Retention(RetentionPolicy.RUNTIME)
+ at Documented
+ at Target({ElementType.TYPE}) 
+ at Retention(RetentionPolicy.RUNTIME)
 public @interface Resources
 {
    Resource[] value();

Modified: branches/JEE5_TCK/ejb3x/src/main/javax/annotation/security/DeclareRoles.java
===================================================================
--- branches/JEE5_TCK/ejb3x/src/main/javax/annotation/security/DeclareRoles.java	2006-09-28 11:33:32 UTC (rev 57261)
+++ branches/JEE5_TCK/ejb3x/src/main/javax/annotation/security/DeclareRoles.java	2006-09-28 12:36:47 UTC (rev 57262)
@@ -21,6 +21,7 @@
 */
 package javax.annotation.security;
 
+import java.lang.annotation.Documented;
 import java.lang.annotation.ElementType;
 import java.lang.annotation.Retention;
 import java.lang.annotation.RetentionPolicy;
@@ -36,8 +37,10 @@
  * @author <a href="mailto:bill at jboss.org">Bill Burke</a>
  * @version $Revision$
  */
- at Target({ElementType.TYPE}) @Retention(RetentionPolicy.RUNTIME)
-   public @interface DeclareRoles
+ at Documented
+ at Target({ElementType.TYPE})
+ at Retention(RetentionPolicy.RUNTIME)
+public @interface DeclareRoles
 {
    String[] value();
 }

Modified: branches/JEE5_TCK/ejb3x/src/main/javax/annotation/security/DenyAll.java
===================================================================
--- branches/JEE5_TCK/ejb3x/src/main/javax/annotation/security/DenyAll.java	2006-09-28 11:33:32 UTC (rev 57261)
+++ branches/JEE5_TCK/ejb3x/src/main/javax/annotation/security/DenyAll.java	2006-09-28 12:36:47 UTC (rev 57262)
@@ -21,6 +21,7 @@
 */
 package javax.annotation.security;
 
+import java.lang.annotation.Documented;
 import java.lang.annotation.ElementType;
 import java.lang.annotation.Retention;
 import java.lang.annotation.RetentionPolicy;
@@ -33,8 +34,10 @@
  * @author <a href="mailto:bill at jboss.org">Bill Burke</a>
  * @version $Revision$
  */
- at Target({ElementType.METHOD, ElementType.TYPE}) @Retention(RetentionPolicy.RUNTIME)
-   public @interface DenyAll
+ at Documented
+ at Target({ElementType.METHOD})
+ at Retention(RetentionPolicy.RUNTIME)
+public @interface DenyAll
 {
 }
 

Modified: branches/JEE5_TCK/ejb3x/src/main/javax/annotation/security/PermitAll.java
===================================================================
--- branches/JEE5_TCK/ejb3x/src/main/javax/annotation/security/PermitAll.java	2006-09-28 11:33:32 UTC (rev 57261)
+++ branches/JEE5_TCK/ejb3x/src/main/javax/annotation/security/PermitAll.java	2006-09-28 12:36:47 UTC (rev 57262)
@@ -21,6 +21,7 @@
 */
 package javax.annotation.security;
 
+import java.lang.annotation.Documented;
 import java.lang.annotation.ElementType;
 import java.lang.annotation.Retention;
 import java.lang.annotation.RetentionPolicy;
@@ -33,8 +34,10 @@
  * @author <a href="mailto:bill at jboss.org">Bill Burke</a>
  * @version $Revision$
  */
- at Target({ElementType.METHOD, ElementType.TYPE}) @Retention(RetentionPolicy.RUNTIME)
-   public @interface PermitAll
+ at Documented
+ at Target({ElementType.TYPE, ElementType.METHOD})
+ at Retention(RetentionPolicy.RUNTIME)
+public @interface PermitAll
 {
 }
 

Modified: branches/JEE5_TCK/ejb3x/src/main/javax/annotation/security/RolesAllowed.java
===================================================================
--- branches/JEE5_TCK/ejb3x/src/main/javax/annotation/security/RolesAllowed.java	2006-09-28 11:33:32 UTC (rev 57261)
+++ branches/JEE5_TCK/ejb3x/src/main/javax/annotation/security/RolesAllowed.java	2006-09-28 12:36:47 UTC (rev 57262)
@@ -21,6 +21,7 @@
 */
 package javax.annotation.security;
 
+import java.lang.annotation.Documented;
 import java.lang.annotation.ElementType;
 import java.lang.annotation.Retention;
 import java.lang.annotation.RetentionPolicy;
@@ -34,8 +35,10 @@
  * @author <a href="mailto:bill at jboss.org">Bill Burke</a>
  * @version $Revision$
  */
- at Target({ElementType.METHOD, ElementType.TYPE}) @Retention(RetentionPolicy.RUNTIME)
-   public @interface RolesAllowed
+ at Documented
+ at Target({ElementType.TYPE, ElementType.METHOD})
+ at Retention(RetentionPolicy.RUNTIME)
+public @interface RolesAllowed
 {
    String[] value();
 }

Modified: branches/JEE5_TCK/ejb3x/src/main/javax/annotation/security/RunAs.java
===================================================================
--- branches/JEE5_TCK/ejb3x/src/main/javax/annotation/security/RunAs.java	2006-09-28 11:33:32 UTC (rev 57261)
+++ branches/JEE5_TCK/ejb3x/src/main/javax/annotation/security/RunAs.java	2006-09-28 12:36:47 UTC (rev 57262)
@@ -21,6 +21,7 @@
 */
 package javax.annotation.security;
 
+import java.lang.annotation.Documented;
 import java.lang.annotation.ElementType;
 import java.lang.annotation.Retention;
 import java.lang.annotation.RetentionPolicy;
@@ -40,8 +41,10 @@
  * @author <a href="mailto:bill at jboss.org">Bill Burke</a>
  * @version $Revision$
  */
- at Target(ElementType.TYPE) @Retention(RetentionPolicy.RUNTIME)
-   public @interface RunAs
+ at Documented
+ at Target(ElementType.TYPE)
+ at Retention(RetentionPolicy.RUNTIME)
+public @interface RunAs
 {
    String value();
 }




More information about the jboss-cvs-commits mailing list