You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by db...@apache.org on 2006/12/21 04:20:06 UTC
svn commit: r489255 - in
/geronimo/specs/trunk/geronimo-annotation_1.0_spec/src/main/java/javax/annotation:
Generated.java PostConstruct.java PreDestroy.java Resource.java
Resources.java
Author: dblevins
Date: Wed Dec 20 19:20:05 2006
New Revision: 489255
URL: http://svn.apache.org/viewvc?view=rev&rev=489255
Log:
Fixed class defs so this is now 100% compliant with Annotations 1.0
Modified:
geronimo/specs/trunk/geronimo-annotation_1.0_spec/src/main/java/javax/annotation/Generated.java
geronimo/specs/trunk/geronimo-annotation_1.0_spec/src/main/java/javax/annotation/PostConstruct.java
geronimo/specs/trunk/geronimo-annotation_1.0_spec/src/main/java/javax/annotation/PreDestroy.java
geronimo/specs/trunk/geronimo-annotation_1.0_spec/src/main/java/javax/annotation/Resource.java
geronimo/specs/trunk/geronimo-annotation_1.0_spec/src/main/java/javax/annotation/Resources.java
Modified: geronimo/specs/trunk/geronimo-annotation_1.0_spec/src/main/java/javax/annotation/Generated.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-annotation_1.0_spec/src/main/java/javax/annotation/Generated.java?view=diff&rev=489255&r1=489254&r2=489255
==============================================================================
--- geronimo/specs/trunk/geronimo-annotation_1.0_spec/src/main/java/javax/annotation/Generated.java (original)
+++ geronimo/specs/trunk/geronimo-annotation_1.0_spec/src/main/java/javax/annotation/Generated.java Wed Dec 20 19:20:05 2006
@@ -24,22 +24,32 @@
//
package javax.annotation;
-import java.lang.annotation.Target;
-import java.lang.annotation.Retention;
+import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
/**
* @version $Rev$ $Date$
*/
-@Target({ElementType.ANNOTATION_TYPE, ElementType.CONSTRUCTOR, ElementType.FIELD,
-ElementType.LOCAL_VARIABLE, ElementType.METHOD, ElementType.PACKAGE,
-ElementType.PARAMETER, ElementType.TYPE})
+@Target({
+ ElementType.PACKAGE,
+ ElementType.TYPE,
+ ElementType.ANNOTATION_TYPE,
+ ElementType.METHOD,
+ ElementType.CONSTRUCTOR,
+ ElementType.FIELD,
+ ElementType.LOCAL_VARIABLE,
+ ElementType.PARAMETER
+ })
@Retention(RetentionPolicy.SOURCE)
-
+@Documented
public @interface Generated {
String[] value();
+
String date() default "";
+
String comments() default "";
}
Modified: geronimo/specs/trunk/geronimo-annotation_1.0_spec/src/main/java/javax/annotation/PostConstruct.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-annotation_1.0_spec/src/main/java/javax/annotation/PostConstruct.java?view=diff&rev=489255&r1=489254&r2=489255
==============================================================================
--- geronimo/specs/trunk/geronimo-annotation_1.0_spec/src/main/java/javax/annotation/PostConstruct.java (original)
+++ geronimo/specs/trunk/geronimo-annotation_1.0_spec/src/main/java/javax/annotation/PostConstruct.java Wed Dec 20 19:20:05 2006
@@ -28,10 +28,12 @@
import java.lang.annotation.Retention;
import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Documented;
/**
* @version $Rev$ $Date$
*/
+@Documented
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface PostConstruct {
Modified: geronimo/specs/trunk/geronimo-annotation_1.0_spec/src/main/java/javax/annotation/PreDestroy.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-annotation_1.0_spec/src/main/java/javax/annotation/PreDestroy.java?view=diff&rev=489255&r1=489254&r2=489255
==============================================================================
--- geronimo/specs/trunk/geronimo-annotation_1.0_spec/src/main/java/javax/annotation/PreDestroy.java (original)
+++ geronimo/specs/trunk/geronimo-annotation_1.0_spec/src/main/java/javax/annotation/PreDestroy.java Wed Dec 20 19:20:05 2006
@@ -28,10 +28,12 @@
import java.lang.annotation.Retention;
import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Documented;
/**
* @version $Rev$ $Date$
*/
+@Documented
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface PreDestroy {
Modified: geronimo/specs/trunk/geronimo-annotation_1.0_spec/src/main/java/javax/annotation/Resource.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-annotation_1.0_spec/src/main/java/javax/annotation/Resource.java?view=diff&rev=489255&r1=489254&r2=489255
==============================================================================
--- geronimo/specs/trunk/geronimo-annotation_1.0_spec/src/main/java/javax/annotation/Resource.java (original)
+++ geronimo/specs/trunk/geronimo-annotation_1.0_spec/src/main/java/javax/annotation/Resource.java Wed Dec 20 19:20:05 2006
@@ -28,11 +28,12 @@
import java.lang.annotation.Retention;
import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Documented;
/**
* @version $Rev$ $Date$
*/
-@Target({ElementType.TYPE, ElementType.METHOD, ElementType.FIELD})
+@Target({ElementType.TYPE, ElementType.FIELD, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface Resource {
public enum AuthenticationType {
Modified: geronimo/specs/trunk/geronimo-annotation_1.0_spec/src/main/java/javax/annotation/Resources.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-annotation_1.0_spec/src/main/java/javax/annotation/Resources.java?view=diff&rev=489255&r1=489254&r2=489255
==============================================================================
--- geronimo/specs/trunk/geronimo-annotation_1.0_spec/src/main/java/javax/annotation/Resources.java (original)
+++ geronimo/specs/trunk/geronimo-annotation_1.0_spec/src/main/java/javax/annotation/Resources.java Wed Dec 20 19:20:05 2006
@@ -28,10 +28,12 @@
import java.lang.annotation.Retention;
import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Documented;
/**
* @version $Rev$ $Date$
*/
+@Documented
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface Resources {