There is no reason why you can't pass some parameters to the object factory. In most cases these are typically initialisation parameters of the sort that would be used in a class constructor. As well ...
Results that may be inaccessible to you are currently showing.
Hide inaccessible results