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 Summary
-
Method Details
-
newBuilderInstance
- Returns:
- a newly created builder.
- Throws:
AssertionError
- in case the object could not be created
-
getTargetClass
Class<T> getTargetClass()- Returns:
- the class of the object that will be created by the contained builder.
-
getBuilderClass
Class<?> getBuilderClass()- Returns:
- the class of the builder.
-
build
Actually builds the target object- Parameters:
builder
-- Returns:
- the Object created by the contained builder
-