geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r1469980 - /geronimo/specs/trunk/geronimo-annotation_1.2_spec/src/main/java/javax/annotation/Priority.java
Date Fri, 19 Apr 2013 18:21:31 GMT
Author: struberg
Date: Fri Apr 19 18:21:31 2013
New Revision: 1469980

URL: http://svn.apache.org/r1469980
Log:
GERONIMO-6464 add javax.annotation.Priority

Added:
    geronimo/specs/trunk/geronimo-annotation_1.2_spec/src/main/java/javax/annotation/Priority.java
  (with props)

Added: geronimo/specs/trunk/geronimo-annotation_1.2_spec/src/main/java/javax/annotation/Priority.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-annotation_1.2_spec/src/main/java/javax/annotation/Priority.java?rev=1469980&view=auto
==============================================================================
--- geronimo/specs/trunk/geronimo-annotation_1.2_spec/src/main/java/javax/annotation/Priority.java
(added)
+++ geronimo/specs/trunk/geronimo-annotation_1.2_spec/src/main/java/javax/annotation/Priority.java
Fri Apr 19 18:21:31 2013
@@ -0,0 +1,24 @@
+package javax.annotation;
+
+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;
+
+/**
+ * Annotation to declare a priority for a class.
+ * This is used by other specs, e.g. CDI where it is used
+ * to define the priority of Interceptors and Decorators.
+ */
+@Target({ElementType.TYPE})
+@Retention(RetentionPolicy.RUNTIME)
+@Documented
+public @interface Priority {
+
+    /**
+     * The priority value.
+     * The higher the value, the more important the annotated class is.
+     */
+    int value();
+}

Propchange: geronimo/specs/trunk/geronimo-annotation_1.2_spec/src/main/java/javax/annotation/Priority.java
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message