Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract getter/setter/field name mangling from BeanUtil into pluggable AccessorNamingStrategy #2800

Closed
cowtowncoder opened this issue Jul 18, 2020 · 1 comment
Milestone

Comments

@cowtowncoder
Copy link
Member

Since there seem to be customizable aspects to how getter and setter implicit names are auto-detected, we should extract current BeanUtil static methods into some kind of pluggable handler, and let that be (re)configured by users (or perhaps by language module(s)?)

cowtowncoder added a commit that referenced this issue Aug 17, 2020
cowtowncoder added a commit that referenced this issue Aug 18, 2020
cowtowncoder added a commit that referenced this issue Aug 18, 2020
cowtowncoder added a commit that referenced this issue Aug 21, 2020
cowtowncoder added a commit that referenced this issue Aug 22, 2020
@cowtowncoder cowtowncoder added this to the 2.12.0 milestone Aug 28, 2020
@cowtowncoder cowtowncoder changed the title Extract getter/setter name mangling from BeanUtil into pluggable handler Extract getter/setter name mangling from BeanUtil into pluggable handler (AccessorNamingStrategy) Aug 28, 2020
@cowtowncoder cowtowncoder changed the title Extract getter/setter name mangling from BeanUtil into pluggable handler (AccessorNamingStrategy) Extract getter/setter/field name mangling from BeanUtil into pluggable AccessorNamingStrategy Aug 28, 2020
cowtowncoder added a commit that referenced this issue Aug 28, 2020
cowtowncoder added a commit that referenced this issue Oct 9, 2020
@cowtowncoder
Copy link
Member Author

Completed implementation:

  • Base api as AccessorNamingStrategy (and matching Provider)
  • Configurable standard implementation DefaultAccessorNamingStrategy (along with .Provider thereof)

and latter is configurable regarding getter/is-getter/setter/with-method prefixes, as well as optional validity checking for base name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant