geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r1670447 - /geronimo/specs/trunk/geronimo-interceptor_1.2_spec/src/main/java/javax/interceptor/Interceptor.java
Date Tue, 31 Mar 2015 19:47:49 GMT
Author: struberg
Date: Tue Mar 31 19:47:49 2015
New Revision: 1670447

URL: http://svn.apache.org/r1670447
Log:
GERONIMO-6463 Priority constants are public static final of course

Modified:
    geronimo/specs/trunk/geronimo-interceptor_1.2_spec/src/main/java/javax/interceptor/Interceptor.java

Modified: geronimo/specs/trunk/geronimo-interceptor_1.2_spec/src/main/java/javax/interceptor/Interceptor.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-interceptor_1.2_spec/src/main/java/javax/interceptor/Interceptor.java?rev=1670447&r1=1670446&r2=1670447&view=diff
==============================================================================
--- geronimo/specs/trunk/geronimo-interceptor_1.2_spec/src/main/java/javax/interceptor/Interceptor.java
(original)
+++ geronimo/specs/trunk/geronimo-interceptor_1.2_spec/src/main/java/javax/interceptor/Interceptor.java
Tue Mar 31 19:47:49 2015
@@ -27,20 +27,22 @@ import java.lang.annotation.Target;
 
 /**
  * Annotation for used defining the interceptors.
- *
- * @version $Rev$ $Id: Interceptor.java 782259 2009-06-06 13:31:32Z gerdogdu $
  */
 @Retention(RUNTIME)
 @Target({TYPE})
 @Documented
 public @interface Interceptor
 {
+    /**
+     * A set of default priorities which can be used by
+     * Interceptors via {@code @javax.annotation.Priority}.
+     */
     public static class Priority {
-        int PLATFORM_BEFORE = 0;
-        int LIBRARY_BEFORE = 1000;
-        int APPLICATION = 2000;
-        int LIBRARY_AFTER = 3000;
-        int PLATFORM_AFTER = 4000;
+        public static final int PLATFORM_BEFORE = 0;
+        public static final int LIBRARY_BEFORE = 1000;
+        public static final int APPLICATION = 2000;
+        public static final int LIBRARY_AFTER = 3000;
+        public static final int PLATFORM_AFTER = 4000;
 
         private Priority() {
             // no-op



Mime
View raw message