Interface ObjectFactory

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract <T extends Any> T createInstance(Class<T> type, RandomizerContext context) Create a new instance of type in the given randomization context.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • createInstance

         abstract <T extends Any> T createInstance(Class<T> type, RandomizerContext context)

        Create a new instance of type in the given randomization context.

        Parameters:
        type - to create
        context - current randomization context
        Returns:

        new instance of the given type