As per my understanding, use of Java reflection API slows down code execution by orders. But then I see it being used in so many places in Java universe. To name a few :
- Annotations
- Spring framework (AOP)
- Hibernate
- MyBatis
Which implies that there's some fact about java reflection (aka optimization technique) that I have missed out on. Any pointers ?