JBoss.org Community Documentation

4.4.1. Annotated-parameter Signature

Let's start with the selection of advices when all of them use the annotated-parameter signature. As we will see later, very similar rules are used for selecting advices with the default signature.

The process of selection of advices that follow the annotated-parameter signature depends on the priority of each kind of parameter:

@JoinPoint > @Target > @Caller > @Throwable = @Return > @Arg > @Args

This priority is used in two different criteria:

  • presence of the annotated parameter

  • assignability degree of the annotation parameter