Annotation Interface InterceptorBinding


An InterceptorBinding is used as a meta-annotation on Around and Introduction advice to indicate that AOP advice should be applied to the method and that any annotations that feature this stereotype annotation should be used to resolve associated interceptors at runtime.
Since:
2.4.0
Author:
graemerocher
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    By default, annotation members are not used when resolving interceptors.
     
    Class<? extends Annotation>
    When declared on an interceptor, the value of this annotation can be used to indicate the annotation the MethodInterceptor binds to at runtime.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The bind members name.
  • Field Details

  • Element Details

    • value

      Class<? extends Annotation> value
      When declared on an interceptor, the value of this annotation can be used to indicate the annotation the MethodInterceptor binds to at runtime.
      Returns:
      The annotation type the interceptor binds to.
      Default:
      java.lang.annotation.Annotation.class
    • kind

      Returns:
      The kind of interceptor.
      Default:
      AROUND
    • bindMembers

      boolean bindMembers
      By default, annotation members are not used when resolving interceptors. The value of bindMembers() can be set to true to indicate that annotation members should be used when binding interceptors to an annotation declaration.

      The NonBinding annotation should then be used on any annotation members that should not be included in this binding computation.

      Returns:
      Whether members should be included in interceptor binding
      Since:
      3.3.0
      See Also:
      Default:
      false