Skip to content

QuestionsAnswers

Stephan edited this page Jul 16, 2014 · 6 revisions

Questions & answers

The factory dies because of a generic model

Models cannot be generic because how would the factory know about the generic type parameters? However, models could inherit from a generic class. But, if you initialize the factory the normal way, the generic type will be passed to the factory, which will die.

You need to properly exclude the generic type from the list of types you pass to the factory. FIXME: explain.

Clone this wiki locally