Annotation Type InterceptorAnnotation

    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:
    Interceptor, RequirePOST
    • Required Element Summary

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

      Optional Elements 
      Modifier and Type Optional Element Description
      Stage stage
      The point of invocation of this interceptor.
    • Element Detail

      • value

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

        Stage stage
        The point of invocation of this interceptor.