public ComponentFactory < T , E > toCreate ( BiFunction < Constructor , Object [ ] , Object > createFunction ) { return new ComponentFactory <> ( this . annotationType , this . classElement , this . contextConsumer , createFunction ) ; }
Sets the function used to create the objects .