Below is the annotation.
@Before(value="execution(* class.method(**)")
Can i change the value of single value annotation using java reflection?
Please suggest.
Below is the annotation.
@Before(value="execution(* class.method(**)")
Can i change the value of single value annotation using java reflection?
Please suggest.
The description of what you are looking for can be found here. But be wary about using such approach, some of the caveats of it are also described.
Also, the retention policy of the annotation has to be runtime, for this.
The link in the comment to your question leads to a post that looks like something you are asking about, but the difference is that it is about a JPA/Hibernate annotation where in the run-time you get a proxy class to your class.