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