Java Reflection Mechanism:
http://www.programcreek.com/2013/09/java-reflection-tutorial/
Explanation of the problem of the Java reflection mechanism breaking the data encapsulation:
Http://stackoverflow.com/questions/16635025/dosent-reflection-api-break-the-very-purpose-of-data-encapsulation
Java Reflection Mechanism Application scenario:
1, for the Java EE, the ORM all based on dynamic bytecode and reflection technology, spring and other IOC framework based on dynamic agents (sometimes dynamic bytecode) and reflection technology, all kinds of popular MVC is servlet+ reflection implementation.
2, for Android, its own context.startactivity/sendbroadcast, etc. are based on reflection, such as Gson/jackson Json-orm are based on reflection, Reflection technology can also solve some cross-process call problems and system hack.
3. Unit test, same over reflection mechanism, unit test for private method
Java reflection mechanism and application scenario