You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by st...@apache.org on 2013/04/19 20:21:31 UTC
svn commit: r1469980 -
/geronimo/specs/trunk/geronimo-annotation_1.2_spec/src/main/java/javax/annotation/Priority.java
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