Annotation Type Aspect.Import

Enclosing class:
Aspect

@Target({PACKAGE,TYPE}) @Retention(SOURCE) public static @interface Aspect.Import
Marks an External Annotation as being used for aspects
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Class<? extends Annotation>
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    Specify the priority ordering when multiple aspects are on a method.
  • Element Details

    • value

      Class<? extends Annotation> value
    • ordering

      Specify the priority ordering when multiple aspects are on a method.

      When multiple aspects are on a method they are nested. The highest ordering value will be the outer-most aspect, the lowest ordering will be the inner-most aspect.

      The outer-most aspect will have it's before executed first, followed by the before of the inner nested aspects ultimately down the invocation of the target method.

      The reverse ordering occurs for after with the outer-most aspect having it's after executed last.

      Returns:
      The ordering of this aspect. High value for outer-most aspect.
      Default:
      1000