I prefer specification of the runtime behavior of a class within the class itself, keeping all the information about a class in one place.
我更喜欢在类的内部说明类的运行时行为,将有关类的所有信息集中保存在一个地方。
Reflection is the runtime discovery of information, such as methods, fields, and constructors, about a given class or interface.
反射是运行时发现的关于给定类或接口的信息,如方法、字段和构造函数。
The goal now is that you just annotate your class that implements the runtime behavior with the names of the labels and some other information.
现在的目标是你只需使用标签名和其他信息将实现了运行期行为的类注解起来就行了。
应用推荐