Annotation Interface Pointcut


@Target(TYPE) @Retention(RUNTIME) public @interface Pointcut
  • Element Details

    • methodParameterTypes

      String[] methodParameterTypes
    • className

      String className
      Restrict the pointcut to methods that are declared in a classes (or interfaces) matching the given name. | and * can be used for limited regular expressions. Full regular expressions can be used by starting and ending className with /
      Default:
      ""
    • classAnnotation

      String classAnnotation
      Optionally (in addition to className or instead of className) restrict the pointcut to methods that are declared in a classes (or interfaces) matching the given annotation. | and * can be used for limited regular expressions. Full regular expressions can be used by starting and ending classAnnotation with /
      Default:
      ""
    • subTypeRestriction

      String subTypeRestriction
      E.g. pointcut on className="java.util.concurrent.Future", methodName="get", methodParameterTypes={}, but only for classes with subTypeRestriction="com.ning.http.client.ListenableFuture" | and * can be used for limited regular expressions. Full regular expressions can be used by starting and ending subTypeRestriction with /
      Default:
      ""
    • superTypeRestriction

      String superTypeRestriction
      E.g. pointcut on className="com.yourcompany.*", methodName="run", methodParameterTypes={}, but only for classes with superTypeRestriction="java.lang.Runnable" | and * can be used for limited regular expressions. Full regular expressions can be used by starting and ending superTypeRestriction with /
      Default:
      ""
    • methodName

      String methodName
      | and * can be used for limited regular expressions. Full regular expressions can be used by starting and ending methodName with /.
      Default:
      ""
    • methodAnnotation

      String methodAnnotation
      Default:
      ""
    • methodReturnType

      String methodReturnType
      Default:
      ""
    • methodModifiers

      MethodModifier[] methodModifiers
      Default:
      {}
    • nestingGroup

      String nestingGroup
      Default:
      ""
    • timerName

      String timerName
      Default:
      ""
    • order

      int order
      Default:
      0
    • suppressibleUsingKey

      String suppressibleUsingKey
      Default:
      ""
    • suppressionKey

      String suppressionKey
      Default:
      ""