From my research I know there are two ways of using AspectJ. First is by creating A.aj
class and second by adding annotation @Aspect
in A.java
.
I was looking for a good tutorial for this second kind, especially about lines like
@After("call(void fooMethod())")
@Around("call(void sendAndReceive())")
@Before("execution(String greeting(..)) && args(context)")
but I don't know how they are called.
Could you recommend some tutorials?
This style is called @AspectJ to emphasize the role of annotations. Have a look at official docs and @AspectJ cheat sheet.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With