Summary of Java annotations and reflection
annotation
-
What is an annotation
-
Built-in annotations
-
Custom annotation
Reflection mechanism
Static language and static language
What is reflection
Why is it called reflection
What can reflection do
Pros and cons of reflection
Reflected classes (main API)
Class class
Common methods of Class
Java memory analysis
Class loading process: class loading, class linking, class initialization
The role of class loader
Create objects of runtime class
Get the complete structure of the runtime class
How to create objects? newInstace() or the specified constructor
When calling the specified method invoke(), private attribute modification, setAccessible(true)
Performance test
Reflection operation generics