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

Is there a way to get rid of dependencies "commons-beanutils" ? Reduce project dependencies. #6

Open
vampireslove opened this issue Mar 10, 2023 · 2 comments

Comments

@vampireslove
Copy link
Contributor

No description provided.

@thiagolvlsantos
Copy link
Owner

We could use only reflection, but we could have to rewrite more complex accesses like object.array[1].attribute.name.

I thougth It could be a lot of work, but... I defined the interface IAccess to allow replace this lib, you can implement you own IAccess without beansutils and exclude the lib on Maven. That`s how I imagined this future requirement could be fullfilled.

Please check If It attends you, and any suggestions are welcome to make it simpler.

Best regards, Thiago

@thiagolvlsantos
Copy link
Owner

Another alternative is to use the flattener you`ve been using to flatten strutctures already in Json format which looks ok to me.

However, in general use it could requires the transformation of POJO objects to flatten maps. I think this processing could be avoided in order to increase overall performance, and also there is the problem of cyclic graphs in objects (which are already resolved by many lib which convert object to XML, for example).

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

2 participants