Annotation Type Intercepts
-
@Target(ANNOTATION_TYPE) @Retention(RUNTIME) public @interface Intercepts
Marks an annotation as being an interceptor marker. See alsoInterceptorHandler
too.
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description Class<? extends InterceptorHandler>
value
The handler to use for that marker.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description int
priority
The interceptors are sorted by this number.
-
-
-
Element Detail
-
value
Class<? extends InterceptorHandler> value
The handler to use for that marker. If not set an exception will be thrown.- Returns:
- the handler class to use for that marker.
-
-
-
priority
int priority
The interceptors are sorted by this number.- Returns:
- the priority of the interceptor.
- Default:
- 0
-
-