Annotation Interface InterceptorBinding


Marks an annotation type as an interceptor binding.

Interceptor bindings are applied to service interfaces, @Injectable implementation classes, or @Fragment provider methods. Sting resolves them at compile time and generates direct service-interface proxies.

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    int
    The interceptor priority.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The canonical dotted name of the @Injectable interceptor implementation.
  • Element Details

    • priority

      The interceptor priority.

      Lower priorities run outermost. Equal effective priorities for one intercepted service are compile errors.

      Returns:
      the interceptor priority.
    • implementedBy

      The canonical dotted name of the @Injectable interceptor implementation.

      Leave empty only when a processor-path interceptor plugin claims the binding.

      Returns:
      the canonical dotted name of the interceptor implementation.
      Default:
      ""