I created a custom annotation @MyAnn . And I will annotate the method parameters with it.
For example: public static call(@MyAnn String name){...}
Using AspectJ, how can I access and update the values โโof all parameters annotated with the annotation?
I found a sample code showing how to create pointcuts designed for custom annotations here .
So now I have created an aspect with pointcut. But I do not know how hot to get the value of a parameter annotated with MyAnn .
@Aspect public class MyAnnAspect { @Around("execution(@my.package.test.MyAnn")
java aspectj
Mytitle
source share