Skip to content

Make object factory configurable on class creation #30

@leakingtapan

Description

@leakingtapan

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions