Interface BuilderInstantiator<T>

Type Parameters:
T - identifying the type of object to be instantiated by the builder
All Known Implementing Classes:
BuilderConstructorBasedInstantiator, BuilderFactoryBasedInstantiator

public interface BuilderInstantiator<T>
Simple interface used for dynamically creating builder objects.
Author:
Oliver Wolff
  • Method Details

    • newBuilderInstance

      Returns:
      a newly created builder.
      Throws:
      AssertionError - in case the object could not be created
    • getTargetClass

      Returns:
      the class of the object that will be created by the contained builder.
    • getBuilderClass

      Returns:
      the class of the builder.
    • build

      T build(Object builder)
      Actually builds the target object
      Parameters:
      builder -
      Returns:
      the Object created by the contained builder