[jboss-cvs] jboss-seam/src/main/org/jboss/seam/annotations ...
Gavin King
gavin.king at jboss.com
Wed Jul 26 18:08:09 EDT 2006
User: gavin
Date: 06/07/26 18:08:09
Modified: src/main/org/jboss/seam/annotations Interceptor.java
Log:
replace @Within and @Around
Revision Changes Path
1.2 +18 -1 jboss-seam/src/main/org/jboss/seam/annotations/Interceptor.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Interceptor.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/annotations/Interceptor.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- Interceptor.java 26 Jul 2006 21:51:04 -0000 1.1
+++ Interceptor.java 26 Jul 2006 22:08:09 -0000 1.2
@@ -12,7 +12,8 @@
/**
* Annotates an interceptor class and specifies what
* kind of interceptor it is (client side or server
- * side).
+ * side), and its ordering with respect to other
+ * interceptors in the stack.
*
* @author Gavin King
*/
@@ -21,5 +22,21 @@
@Documented
public @interface Interceptor
{
+ /**
+ * Specifies that the interceptor is a SERVER or CLIENT
+ * side interceptor.
+ *
+ * @return SERVER by default
+ */
InterceptorType type() default InterceptorType.SERVER;
+ /**
+ * Specifies that an interceptor is called "around"
+ * another interceptor or interceptors.
+ */
+ Class[] around() default {};
+ /**
+ * Specifies that an interceptor is called "within"
+ * another interceptor or interceptors.
+ */
+ Class[] within() default {};
}
More information about the jboss-cvs-commits
mailing list