AuthMe / ConfigMe

A simple configuration management library for any Java project!
MIT License
37 stars 14 forks source link

Beans: put ExportName on fields (goodbye to strict JavaBeans) #359

Open ljacqu opened 1 year ago

ljacqu commented 1 year ago

Goal: base bean properties on a class's fields (that have getters/setters) rather than using JavaBean definitions. The current concept has been outgrown now that we support @Comment on the field—it's awkward that @ExportName needs to be set on a method, not to mention that @Transient is hard to "find out" about.

Note: This is probably a prerequisite for #135.

To do:

Open point: For #135, we might have to infer the properties not by field but maybe by a method or constructor that is annotated somehow... So a bean property class probably can't have a "setValue" anymore? ...