Implementation of java reflection mechanism

Many mainstream frameworks use reflection technology For example, SSH framework adopts two technologies: XML as configuration file + reflection technology

Reflection - related class packages

java. lang.reflect.*; And Java lang.Class;

All types (including basic types) in Java correspond to a class object, which is Java lang.Class。 That is, for each type, there is a class object corresponding to it in class Class has no public constructor. Note that there is no public

How to get a class object

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>