Interface ObjectGenerator<T>

  • Type Parameters:
    T - type of object generated
    All Superinterfaces:
    Generator<T>
    All Known Implementing Classes:
    ObjectDefaultMappingGenerator, ObjectGeneratorImpl

    public interface ObjectGenerator<T>
    extends Generator<T>
    Declarative object generator definition.

    User should call implementation of ObjectGenerator as follows:

    
     ObjectGenerator<T> g;
     Generator<R> methodGenerator;
     g.on(g.getRecorder().method()).returns(methodGenerator);
     
    • Method Detail

      • getRecorder

        T getRecorder()
        Implementation of T that is used to define the method a generator should be defined for.
        Returns:
        an implementation of T used only to record method calls