org.jboss.aop.advice.annotation
Annotation Type Arg


@Target(value=PARAMETER)
@Retention(value=RUNTIME)
public @interface Arg

Use this annotation on advice parameters that should contain values of advised joinpoint arguments.

Author:
Flavia Rainone

Optional Element Summary
 int index
          Indicates which joinpoint argument this advice parameter refers to.
 

index

public abstract int index
Indicates which joinpoint argument this advice parameter refers to. When this value is not set, JBoss AOP will select the first joinpoint argument of the same type (or, if there is not such argument, the first joinpoint argument of an assignable type to the advice parameter).

Default:
-1


Copyright © 2004 JBoss Inc. All Rights Reserved.