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 2015/03/31 21:47:49 UTC
svn commit: r1670447 -
/geronimo/specs/trunk/geronimo-interceptor_1.2_spec/src/main/java/javax/interceptor/Interceptor.java
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