有一些 Java 库可以执行您原本必须放入每个类中的操作。例如,在我发现 Cloner 之前,我不得不在每个类中放置一个 clone() 方法。 ,并且我必须放置 XML 处理代码,直到我发现 XStream .
还有类似的辅助库吗?
最佳答案
您可能喜欢 reflections
Reflections scans your classpath, indexes the metadata, allows you to query it on runtime and may save and collect that information for many modules within your project.
关于java - 反射助手 Java 库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3923325/