Reflection to Extract Annotation Details
In my this tutorial, I am going to demonstrate how to extract method details with Annotation details with Reflection mechanism. Have a look on complete details and let me know if I you need some more details. Below interface is @Retention.RUNTIME Annotation enabled.
1 2 3 4 5 6 7 8 9 |
package www.technicaljungle.com; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; @Retention(RetentionPolicy.RUNTIME) public @interface RefRetentionInterface { String value(); } |
……………