@Target(value=PARAMETER) @Retention(value=RUNTIME) public @interface Arg
index attribute is not defined, JBoss AOP will match
the @Arg annotated parameter with the joinpoint argument closest with
the closest type.
Look at the following example:
In this scenario, JBoss AOP will match
To learn how JBoss AOP will match Arg annotated parameters with joinpoint
arguments in more complex scenarios, please, refer to the Reference Manual
documentation.| Modifier and Type | Optional Element and Description |
|---|---|
int |
index
Indicates which joinpoint argument this advice parameter refers to.
|
public abstract int index
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.