overview

Overview

Although there is already a BeanUtil tool encapsulation for JavaBeans, I think it is not enough. Recently, I read the source code of Apache Commons BeanUtils’ DynaBean and the documentation of Mirror class in Nuts (please see here -> Enhancing Reflection), which inspired me a lot. Therefore, I decided to add DynaBean to Hutool.

Dyna stands for Dynamic, which means that it uses Java reflection mechanism to operate JavaBeans, to achieve some characteristics of dynamic languages.

Another improvement in the bean package is to provide caching for PropertyDescriptor obtained through introspection. The BeanInfoCache class caches the PropertyDescriptor, which improves the reflection performance.