Top Description Methods
org.aspectj.lang.annotation

public @Interface AfterReturning

extends Annotation
Annotations
@Retention:RUNTIME
@Target:METHOD
Imports
java.lang.annotation.Target, .ElementType, .Retention, .RetentionPolicy

After returning advice
Author
Alexandre Vasseur

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the argument names (that should match names used in the annotated method)
argNames
()

When compiling without debug info, or when interpreting pointcuts at runtime, the names of any arguments used in the advice declaration are not available.

public String

Returns:

the pointcut expression where to bind the advice, overrides "value" when specified
pointcut
()

public String

Returns:

the name of the argument in the advice signature to bind the returned value to
returning
()

public String

Returns:

the pointcut expression where to bind the advice
value
()

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

argNamesback to summary
public String argNames()

When compiling without debug info, or when interpreting pointcuts at runtime, the names of any arguments used in the advice declaration are not available. Under these circumstances only, it is necessary to provide the arg names in the annotation - these MUST duplicate the names used in the annotated method. Format is a simple comma-separated list.

Returns:String

the argument names (that should match names used in the annotated method)

pointcutback to summary
public String pointcut()
Returns:String

the pointcut expression where to bind the advice, overrides "value" when specified

returningback to summary
public String returning()
Returns:String

the name of the argument in the advice signature to bind the returned value to

valueback to summary
public String value()
Returns:String

the pointcut expression where to bind the advice