Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Please suggest some tutorial for learning pointcut expression [closed]

Please suggest some tutorial/cheatsheet for learning pointcut expression.

like image 876
Rakesh Juyal Avatar asked Dec 18 '09 06:12

Rakesh Juyal


People also ask

What is pointcut expression?

Pointcut is an expression language of spring AOP which is basically used to match the target methods to apply the advice. It has two parts ,one is the method signature comprising of method name and parameters. Other one is the pointcut expression which determines exactly which method we are applying the advice to.

At what method does the pointcut expression reference at Target?

@target – pointcut expression for matching to join points where the class of the executing object has an annotation of the given type. @args – pointcut expression for matching to join points where the runtime type of the actual arguments passed have annotations of the given type.


2 Answers

The AspectJ programmers guide has plenty examples, looks straightforward.

like image 71
skaffman Avatar answered Nov 15 '22 05:11

skaffman


AspectJ in Action is also a great source of information on AOP and AspectJ.

like image 30
Wim Deblauwe Avatar answered Nov 15 '22 03:11

Wim Deblauwe