Annotation Type InterceptorAnnotation

@Target(ANNOTATION_TYPE) @Retention(RUNTIME) @Documented public @interface InterceptorAnnotation
Marks the annotation as an interceptor annotation, which executes before/after the method invocation of domain objects happen as a part of the request processing.

This mechanism is useful for performing declarative processing/check on domain objects, such as checking HTTP headers, performing the access control, etc.

Kohsuke Kawaguchi
See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Class<? extends Interceptor>
    Actual interceptor logic.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    The point of invocation of this interceptor.
  • Element Details

    • value

      Class<? extends Interceptor> value
      Actual interceptor logic. Must have a default constructor.
    • stage

      Stage stage
      The point of invocation of this interceptor.