mercredi 18 septembre 2019

How to resolve dependency graph loop

I have Foo and Bar classes. I want to create FooForBar class wich provides acces to Foo instances by specific way (want to limit acces to specific fields of Foo instances). In the same time it needs to store Bar instances in Foo instances. And there is a loop in dependencies graph wich is not good.

uml

How can I resolve it or make this architecture another way?

Aucun commentaire:

Enregistrer un commentaire