Stringy Beans
GoChaCha is a library for setting fields on beans using only strings. Just like BeanUtils.
Unlike BeanUtils, GoChaCha is:
- A1 100% singleton free
- Much more flexible
- Fast, fast, fast and FAST
More than four times faster than BeanUtils
Setting six hundred thousand primitive fields on an object in a bake off between GoChaCha and BeanUtils (shorter bars are better):
What it does
- Setting of both primitive and complex fields
- Setting fields on fields, e.g: ObjectBox.setField("object.subObject.aField","value")
- Setting of arrays, e.g: ObjectBox.setField("myArray","[a,b,c,d,e]") or ObjectBox.setField("myArray[4]","e")
- Setting of collections (including maps) using the same syntax as arrays
- Use of generics on collections to determine the converter for both keys and values
- FieldInterceptors which can provide all of the functionality of DynaBeans, plus a lot more
- An adapter is provided to retrofit BeanUtils converters
- You can have different converters for the same primitive type within a single thread
