harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ndbe...@apache.org
Subject svn commit: r413334 - in /incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation: Documented.java Inherited.java Retention.java Target.java
Date Sat, 10 Jun 2006 17:29:41 GMT
Author: ndbeyer
Date: Sat Jun 10 10:29:41 2006
New Revision: 413334

URL: http://svn.apache.org/viewvc?rev=413334&view=rev
Log:
Add meta-annotations

Added:
    incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/Documented.java
  (with props)
    incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/Inherited.java
  (with props)
    incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/Retention.java
  (with props)
    incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/Target.java
  (with props)

Added: incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/Documented.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/Documented.java?rev=413334&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/Documented.java
(added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/Documented.java
Sat Jun 10 10:29:41 2006
@@ -0,0 +1,31 @@
+/*
+ * Copyright 2006 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed 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.
+ */
+
+package java.lang.annotation;
+
+/**
+ * <p>
+ * A meta-annotation used to indicate that a type's annotation are documented
+ * and part of the public API.
+ * </p>
+ * 
+ * @since 1.5
+ */
+@Documented
+@Retention(RetentionPolicy.RUNTIME)
+@Target(ElementType.ANNOTATION_TYPE)
+public @interface Documented {
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/Documented.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/Inherited.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/Inherited.java?rev=413334&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/Inherited.java
(added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/Inherited.java
Sat Jun 10 10:29:41 2006
@@ -0,0 +1,31 @@
+/*
+ * Copyright 2006 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed 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.
+ */
+
+package java.lang.annotation;
+
+/**
+ * <p>
+ * A meta-annotation used to indicate that an annotation is automatically
+ * inherited.
+ * </p>
+ * 
+ * @since 1.5
+ */
+@Documented
+@Retention(RetentionPolicy.RUNTIME)
+@Target(ElementType.ANNOTATION_TYPE)
+public @interface Inherited {
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/Inherited.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/Retention.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/Retention.java?rev=413334&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/Retention.java
(added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/Retention.java
Sat Jun 10 10:29:41 2006
@@ -0,0 +1,32 @@
+/*
+ * Copyright 2006 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed 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.
+ */
+
+package java.lang.annotation;
+
+/**
+ * <p>
+ * A meta-annotation used to determine the scope of retention for an annotation.
+ * The default value is {@link RetentionPolicy#RUNTIME}.
+ * </p>
+ * 
+ * @since 1.5
+ */
+@Documented
+@Retention(RetentionPolicy.RUNTIME)
+@Target(ElementType.ANNOTATION_TYPE)
+public @interface Retention {
+    RetentionPolicy value() default RetentionPolicy.CLASS;
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/Retention.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/Target.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/Target.java?rev=413334&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/Target.java
(added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/Target.java
Sat Jun 10 10:29:41 2006
@@ -0,0 +1,32 @@
+/*
+ * Copyright 2006 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed 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.
+ */
+
+package java.lang.annotation;
+
+/**
+ * <p>
+ * A meta-annotation used to determine what {@link ElementType}s an annotation
+ * can be applied to.
+ * </p>
+ * 
+ * @since 1.5
+ */
+@Documented
+@Retention(RetentionPolicy.RUNTIME)
+@Target(ElementType.ANNOTATION_TYPE)
+public @interface Target {
+    ElementType[] value();
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/annotation/src/main/java/java/lang/annotation/Target.java
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message