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

PersistentBeanFactory::getAllFields maybe should be extensible #62

Open
skrilagg opened this issue Jun 1, 2021 · 0 comments
Open

PersistentBeanFactory::getAllFields maybe should be extensible #62

skrilagg opened this issue Jun 1, 2021 · 0 comments
Assignees
Projects

Comments

@skrilagg
Copy link

skrilagg commented Jun 1, 2021

Hi,

I came across the situation that many of our bean classes throw an exception when loading. Storing works fine.
This happens because of final fields inside the bean class and no fitting constructor. This behavior would mean, that I have to create a lot of boilerplate code for de-/serializing these objects when using deepsampler.

This brought to my mind, that maybe getAllFields should be extensible. With that I could e.g. write my own logic on which fields should be serialized in a more generic way, without having to declare BeanFactoryExtensions for all cases.

If this is not the way deepsampler should work -> Alternative:

  • Available constructors should get analyzed to identify which fields are needed and which can be omitted. Maybe this behavior could be summarized in a configuration of deepsampler. Something like "strict, lenient".

Please let me know if this makes sense for you or if I'm missing something here.

Best regards,
Michel Pittelkow

@rcschrg rcschrg self-assigned this Jun 9, 2021
@JanSchankin JanSchankin added this to To do in Dev via automation Jul 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Dev
  
To do
Development

No branches or pull requests

2 participants