Reflective helper java libraries
There are some开发者_如何学Python Java libraries that do stuff you would otherwise have to put in every single class. For example, I had to put a clone() method in every single class until I discovered Cloner, and I had to put XML handling code until I discovered XStream.
Are there any more similar helper libraries like these?
You might like 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.
Apache Commons BeanUtils provides a number of reflection based operations such as the BeanComparator
精彩评论