{8.2.0-new} Java Beans Support
Out-of-the-box, Juneau supports marshalling of Java beans with standard public getters and setters, public
fields, and fluent setters (e.g.
Several settings exist to allow you to customize how bean properties are handled by serializers and parsers:
Settings and equivalent annotations are also available to control which properties are marshalled and how they are ordered.
It's common to use the {@link oaj.annotation.Bean#bpi @Bean(bpi)} annotation to force the ordering of properties during marshalling. IBM JVMs keep the ordering of fields and methods in the compiled bytecode, but Oracle JVMs do not and return fields/methods in random order. The {@link oaj.annotation.Bean#bpi @Bean(bpi)} annotation was added to help with this limitation.
Another option to force ordering of properties is to use {@link oaj.BeanContext#BEAN_sortProperties} or {@link oaj.annotation.Bean#sort @BeanĂ¥(sort)}.