Core API: introduce a model builder
For a plugin developer all the methods of the ModelFactory
(the mf
object) are a big mess. There are too many forms of each method, and they have too many parameters. These method signatures are impossible to remember. All this is the perfect indication to apply the builder pattern.
In DM5 the ModelFactory
will be replaced ModelBuilder
factory which produces model builders. For every of the Core Model classes there will be a corresponding builder: TopicModelBuilder
, AssociationModelBuilder
, TopicTypeModelBuilder
, ...