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

Make object factory configurable on class creation #30

Open
leakingtapan opened this issue Aug 5, 2019 · 0 comments
Open

Make object factory configurable on class creation #30

leakingtapan opened this issue Aug 5, 2019 · 0 comments

Comments

@leakingtapan
Copy link
Owner

leakingtapan commented Aug 5, 2019

Description

There are several restrictions on how the rof could be used in various situations:

  • It's impossible to configure the size of List being generated. Because the size supplier is hard coded here. Similar limitation applies to other collection types such as ArrayList, etc.
  • It's impossible to configure how a specific filed within a class is generated. For example, class A has two fields String str1 and String str2, user might want str1 and str2 be generated in two different ways
  • User might want different behavior when object creation failed. See Throw exception when ROF can't initialize class properly. #25 for an use case.
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