Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Reflection is a tool with which you can find out all the information about a class: method names, parameters, fields, annotations, etc.
These features are widely used in frameworks like Spring, Hibernate...
Various json/xml serializers
Anything that uses annotations already uses reflection. There is also a subtle thing that few people know - a proxy. You can programmatically wrap a method and do actions before and after. If I don’t sleep and haven’t forgotten, then this is actively used as a base for aspects.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question