Class RecordFactory

All Implemented Interfaces:
ObjectFactory

public class RecordFactory extends ObjenesisObjectFactory
What is the justification for extending ObjenesisObjectFactory? RecordFactory, to support nesting depth, needs access to context implementation which renders the interface (RandomizerContext) introduced by ObjenesisObjectFactory method signature redundant. Abandoning the inheritance will hence simplify the implementation by reducing the number of parameters, and by additionally storing the instance of RecordFactory as a field in the EasyRandom class.
  • Constructor Details

    • RecordFactory

      public RecordFactory(org.jeasy.random.RandomizationContext contextImpl)
  • Method Details