Java Beanutils 简明教程
Java BeanUtils - Utility Objects & Classes
Description
诸如 BeanUtils、ConvertUtils 和 PropertyUtils 的实用程序类可通过实用程序对象进行访问,并共享相同的缓存和已注册的转换器。你可以为每个静态实用程序类通过具有相同功能来实例化对应的类。
静态实用程序类是只具有在作为参数传递的对象上执行某些操作的静态方法的类。此类通常不具有状态。
下表显示了静态实用程序类和实用程序对象:
S.N. |
Static Utility Class |
Utility Object |
1 |
BeanUtils |
BeanUtilsBean |
2 |
ConvertUtils |
ConvertUtilsBean |
3 |
PropertyUtils |
PropertyUtilsBean |