-
Notifications
You must be signed in to change notification settings - Fork 232
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
Support custom ObjectFactory #341
Comments
This is one of the things I wanted to do in a major release: making every behaviour overridable instead of configurable. See my comment here. |
A new interface EasyRandomParameters parameters = new EasyRandomParameters()
.objectFactory(new MyObjectFactory());
EasyRandom easyRandom = new EasyRandom(parameters); You can find an example here and try it with version I'm closing this issue for now, but please do not hesitate to provide your feedback by adding a comment here. |
We use custom class instantiators in our project. So some our project classes don't have a default constructor and these objects can be created only from these instantiators.
I would like to override method io.github.benas.randombeans.ObjectFactory#createNewInstance and inject our custom instantiators.
The text was updated successfully, but these errors were encountered: